#include <iostream>
#include <cstring>
using namespace std;
int main() {
char str[20];
while (cin >> str) cout << strlen(str) << ' ';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJY2hhciBzdHJbMjBdOwoJd2hpbGUgKGNpbiA+PiBzdHIpIGNvdXQgPDwgc3RybGVuKHN0cikgPDwgJyAnOwoJcmV0dXJuIDA7Cn0=