#include using namespace std; int i,lu,dx[10]= {1,-1},dy[10]= {0,0,1,-1},co1,co2,ans,l,c,L,C,j,cst[5][20]; char a[5][20],st[200]; bool mrk[5][20]; queue >q; pair A,B,AA; int main() { /// ifstream f ("a.in"); /// ofstream g ("a.out"); cin>>st; a[1][1]='Q'; a[1][2]='W'; a[1][3]='E'; a[1][4]='R'; a[1][5]='T'; a[1][6]='Y'; a[1][7]='U'; a[1][8]='I'; a[1][9]='O'; a[1][10]='P'; a[2][1]='A'; a[2][2]='S'; a[2][3]='D'; a[2][4]='F'; a[2][5]='G'; a[2][6]='H'; a[2][7]='J'; a[2][8]='K'; a[2][9]='L'; a[3][1]='Z'; a[3][2]='X'; a[3][3]='C'; a[3][4]='V'; a[3][5]='B'; a[3][6]='N'; a[3][7]='M'; lu=strlen(st); q.push({2,4}); q.push({2,7}); for(i=0; i