#include <iostream>
#include <string>
using namespace std;
int main()
{
int t;
string a;
cin>>t;
getline(cin,a);
int len=a.length();
cout<<a<<" "<<len;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBpbnQgdDsKICAgIHN0cmluZyBhOwogICAgY2luPj50OwogICAgZ2V0bGluZShjaW4sYSk7CiAgICBpbnQgbGVuPWEubGVuZ3RoKCk7CiAgICBjb3V0PDxhPDwiICI8PGxlbjsKfQ==