var s = readLine stdin for i, c in s: var o = c.ord d = 'A'.ord + i.succ mod 26 o.dec d if o < 0: o.inc 26 s[i] = 'A'.succ o echo s