#include <stdio.h> int main() /*from w w w . ja va 2s. co m*/ { double nc; for (nc = 0; getchar() != EOF; ++nc) ; printf("%.0f\n", nc); }