#include <stdio.h> int main(void) { int c, sum = 0; while ((c = getchar()) != EOF && c != '\n') ++sum; printf("%d\n", sum); return 0; }