Beecrowd 1196

 avatar
kaziamir
c_cpp
a year ago
675 B
3
Indexable
Never
#include<bits/stdc++.h>
using namespace std;

string all="`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";

void chk(char x){
    for(int i=0;i<all.size();i++){
        if(x==all[i]){
            cout<<all[i-1];
        }
    }
}

int main(){

    string input;
    while(getline(cin,input)){
        for(int i=0;i<input.size();i++){
            if(input[i]==' '){
                cout<<' ';
            }
            else if(input[i]=='\n'){
                cout<<'\n';
            }
            else{
                chk(input[i]);
            }
        }
        cout<<endl;

    }


    /*
	for(int i=0;i<all.size();i++){
		cout<<all[i]<<" "<<endl;
	}
	*/
	return 0;
}