#include <stdio.h> int getlen(char *s) { int i=0; while(s[i++] != 0); return i-1; } int main() { char s[1000]; while(gets(s) != 0) { printf("%d\n",getlen(s)); } return 0; }