Yanami Anna asked Nukumizu Kazuhiko for help with losing her weight by locking all the snacks in a safe.(保險箱)To make sure her weight loss plan succeeded, Nukumizu came up with a special password generation method:
Unfortunately, after locking the safe, you realized your snacks were locked inside too! Luckily, Nukumizu recorded the password creation process. By following these steps in order, you can retrieve the password and save your snacks.
The first line of input contains T, N and a string S of length N. T is ths number of operations, and the string S will only contain lowercase letters.
This is followed by T lines, each containing three numbers L , R and M , indicating that all characters from position L to position R in the string should be shifted by M positions.
Output the string S after T operations.
Please remember to print "\n" at the end.