cswork / OAOpen practice workspace

eBayOA #2

Shift n-th Consonant

Estimated EasyJudge-ready

Topics (AI-labelled)Strings

Count consonants from the left; the n-th, 2n-th, 3n-th… consonants are replaced with the next consonant, preserving case, with z wrapping around to b. Vowels and non-ASCII letters are kept as is and are not counted.

Input

The first line contains n (1..10⁹), and the second line contains message (≤200000 ASCII printable characters, possibly including spaces). Only A-Z/a-z are treated as English letters; this rule is an explicit site supplement.

Output

Output the entire transformed line as is; spaces must be preserved.

Example 1

Input:

1
z Z abc!

Output:

b B acd!

Example 2

Input:

3
Abc xyz! 09

Output:

Abc yyz! 09

Example 3

Input:

100
Hello, World!

Output:

Hello, World!

Editorial

Loading solution…