#K79702. Shift the String

    ID: 35367 Type: Default 1000ms 256MiB

Shift the String

Shift the String

You are given a string s consisting of lowercase English letters. Your task is to transform the string by shifting each character to the next letter in the English alphabet. For example, a becomes b and z wraps around to a.

The transformation can be mathematically represented using the formula: $$ch' = \text{chr}(((\text{ord}(ch) - \text{ord}('a') + 1) \mod 26) + \text{ord}('a'))$$ where ch is a character in the string and ch' is the corresponding shifted character.

Examples:

  • If s = "abc", the transformed string is "bcd".
  • If s = "xyz", the transformed string is "yza".
  • If s = "hello", the transformed string is "ifmmp".

inputFormat

The input consists of a single line containing a non-empty string of lowercase English letters.

outputFormat

Output the transformed string after shifting every character to its subsequent letter in the alphabet.

## sample
abc
bcd