#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int x,y,z,t=0;
char a[10000],b,c;
gets(a);
y=strlen(a);
for(z=0;z<y;z++)
if(a[z]==' ') t++;
}
printf("%d\n",t+1);
return 0;
還錯?!!?!?!?!?!