#include <iostream>
#include <locale>
#include <string>
using namespace std;
int main() {
locale::global(locale("C"));
wcin.imbue(locale("C.UTF-8"));
wstring s;
wcin >> s;
cout << s.length() << " " << (s == L"áéú");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bG9jYWxlPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgbG9jYWxlOjpnbG9iYWwobG9jYWxlKCJDIikpOwogICAgd2Npbi5pbWJ1ZShsb2NhbGUoIkMuVVRGLTgiKSk7CiAgICB3c3RyaW5nIHM7CiAgICB3Y2luID4+IHM7CiAgICBjb3V0IDw8IHMubGVuZ3RoKCkgPDwgIiAiIDw8IChzID09IEwiw6HDqcO6Iik7CglyZXR1cm4gMDsKfQo=