#include <iostream>
#include <cstring>
using namespace std;
bool isLetter( char c) {
return ( 'A' <= c && c <= 'Z' ) || ( 'a' <= c && c <= 'z' ) ;
}
int totalWords( char text[ ] ) {
int length = strlen ( text) , totalWords = 0 ;
bool wasLetter = false ;
for ( int i = 0 ; i <= length; ++ i) {
if ( isLetter( text[ i] ) ) {
wasLetter = true ;
} else if ( wasLetter) {
++ totalWords;
wasLetter = false ;
}
}
return totalWords;
}
int main( ) {
char text[ 1000 ] ;
cin .getline ( text, 1000 ) ;
cout << totalWords( text) ;
return 0 ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmJvb2wgaXNMZXR0ZXIoY2hhciBjKSB7CiAgICByZXR1cm4gKCdBJyA8PSBjICYmIGMgPD0gJ1onKSB8fCAoJ2EnIDw9IGMgJiYgYyA8PSAneicpOwp9CgppbnQgdG90YWxXb3JkcyhjaGFyIHRleHRbXSkgewogICAgaW50IGxlbmd0aCA9IHN0cmxlbih0ZXh0KSwgdG90YWxXb3JkcyA9IDA7CiAgICBib29sIHdhc0xldHRlciA9IGZhbHNlOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPD0gbGVuZ3RoOyArK2kpIHsKICAgICAgICBpZiAoaXNMZXR0ZXIodGV4dFtpXSkpIHsKICAgICAgICAgICAgd2FzTGV0dGVyID0gdHJ1ZTsKICAgICAgICB9IGVsc2UgaWYgKHdhc0xldHRlcikgewogICAgICAgICAgICArK3RvdGFsV29yZHM7CiAgICAgICAgICAgIHdhc0xldHRlciA9IGZhbHNlOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiB0b3RhbFdvcmRzOwp9CgppbnQgbWFpbigpIHsKICAgIGNoYXIgdGV4dFsxMDAwXTsKICAgIGNpbi5nZXRsaW5lKHRleHQsIDEwMDApOwogICAgY291dCA8PCB0b3RhbFdvcmRzKHRleHQpOwogICAgcmV0dXJuIDA7Cn0=
stdin
QXV0b3J1bCBjb25zaWRlcsSDIGPEgyBmcnVtdXNlyJtlYSBlc3RlIHBlc3RlIHRvdCwgbmVmaWluZCBsaW1pdGF0xIMgZG9hciBsYSBsdWNydXJpZSBwZSBjYXJlIGxlIGNvbnNpZGVyxINtIG5vaSB1aW1pdG9hcmUuIFRvdG9kYXTEgywgZWwgb2JlcnbEgyBmcnVtdXNlyJtlYSBjYSBmaWluZCByZWFsaXphYmlsxIMgJmljaXJjO24gb3JpY2UgbHVjcnUsIGluZGlmZXJlbnQgY2UgYXIgZmku
Autorul consideră că frumusețea este peste tot, nefiind limitată doar la lucrurie pe care le considerăm noi uimitoare. Totodată, el obervă frumusețea ca fiind realizabilă în orice lucru, indiferent ce ar fi.