var c:char;begin repeat read(c);write(chr(255and(ord(c)*7+7)))until 1=0end.