#include <stdio.h> #include <string.h> int main() { int k=0; char s[1001]; while(scanf("%s",&s)!=EOF) { k+=strlen(s); } printf("%d",k); return 0; }