proc decode(c: char, n: int): char = const codeA = 'A'.int result = ((c.int - codeA + 26 - n mod 26) mod 26 + codeA).char let str = stdin.readLine() for i,c in str: stdout.write decode(c, i + 1) echo ""