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