import std.stdio, std.conv, std.string, std.range, std.algorithm; void main() { auto S = readln.strip; S.enumerate(1).map!"((1040+a[1]-a[0]-'A')%26+'A').to!char".writeln; }