#include <stdio.h>
#include <string.h>
#define N 5010
char s[N];
int main()
{
gets(s);
int cnt = 0;
for (int i = 0; i < strlen(s); i ++ )
{
if (s[i] != ' ') cnt ++ ;
else cnt = 0;
}
printf("%d", cnt);
return 0;
}

京公网安备 11010502036488号