using namespace std;
string a; int main() { getline(cin,a); ll n=a.size(); for(int i=0;i<=a.size();i++) { if(a[i]==’ ‘) n–; } cout<<n; return 0; }x`