#include
#include
char a[100];
int main()
{
int sum = 1,i;
gets(a);
int len = strlen(a);
for(i = 0;i len-1;i ++) {
if(a[i] == ' '|| a[i] == ',' || a[i] == ';' || a[i] == '!') sum ++;
}
printf("%d\n",sum);
}
#include
#include
char a[100];
int main()
{
int sum = 1,i;
gets(a);
int len = strlen(a);
for(i = 0;i len-1;i ++) {
if(a[i] == ' '|| a[i] == ',' || a[i] == ';' || a[i] == '!') sum ++;
}
printf("%d\n",sum);
}