#include <stdio.h>
/* Count characters in input. */ 
int main() {
    long nc; 
    while (getchar() != EOF) 
          ++nc; 
    printf("%ld\n", nc); 
    return 0;
            }