var c:char;n:byte=96;begin repeat read(c);xor(n,32*ord(c<^!));if c=^`then begin writeln;n:=96end else write(chr(ord(c)mod 32+n))until 1=0end.