#include <iostream> #include <string> #include <cctype> using namespace std; int lower_to_digit(const char& c) { int n = c - 'a'; if(n < 3) return 2; else if(n < 6) return 3; else if(n < 9) return 4; else if(n < 12) return 5; else if(n < 15) return 6; else if(n < 19) return 7; else if(n < 22) return 8; else return 9; } int main() { string str, ans; cin >> str; for(const char& c: str) { if(isdigit(c)) { //数字 ans += c; } else if(isupper(c)) { //大写 char tmp = (char)tolower(c); int diff = ((tmp - 'a') + 1) % 26; tmp = 'a' + diff; ans += tmp; } else { //小写 ans += to_string(lower_to_digit(c)); } } cout << ans << endl; return 0; }