(function (byte, sub) local s,t,a,r = io.stdin:read("*l"),"cqlmdrstfxyzbanopuvweghijk",byte("a"),{} for i=1,#s do local j=byte(sub(s,i,i))-a+1 r[i]=sub(t,j,j) end print(table.concat(r)) end)(string.byte, string.sub)