fork download
  1. x = __import__('string').ascii_letters;
  2. y, z = x[26: ], x[: 26];
  3. a, b = y[::-1], z[::-1];
  4. print(''.join(b[z.index(i)]
  5. if i in b
  6. else a[y.index(i)]
  7. if i in a
  8. else i
  9. for i in input()
  10. ))
Success #stdin #stdout 0.04s 10344KB
stdin
abcdefg
stdout
zyxwvut