#include<stdio.h>
int main()
{
int i=0;
printf("input a string: ");
while(getchar()!=' ')
i++;
}
printf("%d",i);
return 0;