Problems > ROT13

ROT13

Difficulty: 800 2000 ms 128 MB

strings

Apply ROT13 to the lowercase string: rotate every letter 13 places (a↔n, b↔o, ...).

Input: one line with a lowercase string.

Output: the ROT13 transformation.

Constraints:

  • 1 ≤ |S| ≤ 104

Sample Tests

Input 1
hello
Output 1
uryyb
Input 2
uryyb
Output 2
hello

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.