Question
Magic Word Rotations

A wizard has a magic word of length n consisting of lowercase English letters.

The wizard performs q spells. Each spell contains three integers l, r, and x.

This spell rotates every character from position l to position r forward by x steps in the alphabet.

After z, the alphabet starts again from a.

Your task is to print the final magic word after all spells are applied.

Input

The first line contains two integers KaTeX can only parse string typed expression and KaTeX can only parse string typed expression — the length of the magic word and the number of spells.

The second line contains a string KaTeX can only parse string typed expression of length KaTeX can only parse string typed expression.

Each of the next KaTeX can only parse string typed expression lines contains three integers KaTeX can only parse string typed expression, KaTeX can only parse string typed expression, and KaTeX can only parse string typed expression.

Output

Print the final magic word after applying all spells.

Example
Example 1:
Input
5 3

abcde
1 3 1
2 5 2
4 4 26
Output
beffg
Explanation

The total rotations are KaTeX can only parse string typed expression, KaTeX can only parse string typed expression, KaTeX can only parse string typed expression, KaTeX can only parse string typed expression, and KaTeX can only parse string typed expression. Taking rotations modulo KaTeX can only parse string typed expression, the final word becomes KaTeX can only parse string typed expression.

Online