#include <iostream>
#include <cstring>
using namespace std;
int main() {
char s[101];
cin.getline(s,100);
cout << s << endl << strlen(s);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJY2hhciBzWzEwMV07CgljaW4uZ2V0bGluZShzLDEwMCk7Cgljb3V0IDw8IHMgPDwgZW5kbCA8PCBzdHJsZW4ocyk7CglyZXR1cm4gMDsKfQ==