#include <iostream>
#include <string>
using namespace std;
int main() {
string str;
while (cin >> str) cout << str.length() << ' ';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgc3RyOwoJd2hpbGUgKGNpbiA+PiBzdHIpIGNvdXQgPDwgc3RyLmxlbmd0aCgpIDw8ICcgJzsKCXJldHVybiAwOwp9