var c,d:char;begin repeat read(c);d:=locase(c);write((^j+d)[2-ord(c=^`)]:2-ord(c=d))until 0>0end.