Task: Program Execution
Input (English): 3, 21, ['G', '3215', 'y', '3991', 'f', '5813', 'J', '1355', 'J', '2959', 'A', 'i', '2637', 'N', '1973', 'J', 'N', '2269', '7321', 'A', '9997']
Output (English): 9997A73212269NJ1973N2637iA2959J1355J5813f3991y