#include <bits/stdc++.h> using namespace std; int main() { string s; unordered_map<char, char> map; map['a'] = map['b'] = map['c'] = '2'; map['d'] = map['e'] = map['f'] = '3'; map['g'] = map['h'] = map['i'] = '4'; map['j'] = map['k'] = map['l'] = '5'; map['m'] = map['n'] = map['o'] = '6'; map['p'] = map['q'] = map['r'] = map['s'] = '7'; map['t'] = map['u'] = map['v'] = '8'; map['w'] = map['x'] = map['y'] = map['z'] = '9'; map['Z'] = 'a'; while (getline(cin,s)) { for (int i = 0; i < s.length(); i++) { if (s[i] >= 'A' && s[i] < 'Z') { s[i] = s[i] - 'A' + 'a' + 1; } else if (isalpha(s[i])) { s[i] = map[s[i]]; } } cout << s << endl; } }