#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
cout << s << endl << s.size();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgczsKCWdldGxpbmUoY2luLCBzKTsKCWNvdXQgPDwgcyA8PCBlbmRsIDw8IHMuc2l6ZSgpOwoJcmV0dXJuIDA7Cn0=