#include #include #include #include using namespace std; map mapa; int main() { string slovo = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"; string broj = "0222333444555666777788899992223334445556667777888999901234567890"; for (int i = 0; i< slovo.size(); i ++) mapa[ slovo[ i ] ] = broj[ i ]; string ulaz; getline(cin,ulaz); for (int i = 0; i < ulaz.size(); i++) { if (mapa.count(ulaz[i]) > 0) { cout << mapa[ulaz[i]]; } else { cout << "1"; } } cout << endl; return 0; }