#include <stdio.h> #include <string.h> int main () { char s[20]={"ab dc cd ccc"}; int i,n,m; //scanf("%s",s); m=strlen(s); while(i<m) { if((s[i]>='a' && s[i]<='z') || (s[i]>='A' && s[i]<='Z')) i++; n++; i++; } printf("%d",n); return 0; }