{"raw_statement":[{"iden":"statement","content":"Bob is attempting to encrypt information so that only those he trusts with the secret code can decode his secret information. Instead of using a highly secure encryption method, bob uses a method called rotation, where he shifts each letter of his phrase a certain number of characters up or down. This shift works by moving the character up and down the alphabet, so the character 'a' shifted by 5 would become 'f'. A shift also wraps around the alphabet, so if you were to shift 'a' by -5, it would become 'v'. In addition, a character can be shifted by values greater than 26, so for example 'a' shifted by 30 would become 'e', wrapping all the way back around the alphabet. To solve this problem, you will be given a single lowercase string and a series of rotations, with each rotation corresponding to the character in the string with the same index. Perform each rotation on each character and determine what the resulting string would be.\n\nThe first line contains a single lowercase string of length $N$ with no spaces that represents the text to be rotated. The next line contains $N$ space-separated integers that represent the shift performed on the corresponding character of the original string.\n\nA single lowercase string that represents the original string after performing the shifts.\n\n"},{"iden":"input","content":"The first line contains a single lowercase string of length $N$ with no spaces that represents the text to be rotated. The next line contains $N$ space-separated integers that represent the shift performed on the corresponding character of the original string."},{"iden":"output","content":"A single lowercase string that represents the original string after performing the shifts."}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ s = s_1 s_2 \\dots s_N $ be a string of $ N $ lowercase letters, where $ s_i \\in \\{ \\texttt{a}, \\texttt{b}, \\dots, \\texttt{z} \\} $.  \nLet $ r = (r_1, r_2, \\dots, r_N) $ be a sequence of $ N $ integers representing the shift for each character.\n\n**Constraints**  \n1. $ N \\geq 1 $  \n2. For all $ i \\in \\{1, \\dots, N\\} $:  \n   - $ s_i $ is a lowercase English letter.  \n   - $ r_i \\in \\mathbb{Z} $  \n\n**Objective**  \nFor each $ i \\in \\{1, \\dots, N\\} $, compute the shifted character $ s_i' $ as follows:  \nLet $ p_i = (s_i - \\texttt{a} + r_i) \\mod 26 $, where $ s_i - \\texttt{a} $ is the 0-based index of $ s_i $ in the alphabet.  \nThen $ s_i' = \\texttt{a} + p_i $, with arithmetic modulo 26.  \nOutput the string $ s' = s_1' s_2' \\dots s_N' $.","simple_statement":"Given a string of lowercase letters and a list of shift values, shift each letter by its corresponding value (wrapping around the alphabet), and output the resulting string.","has_page_source":false}