Task: Program Execution
Input (English): 3, 4, ['r', '4247', 'U', '3979', 'r', '1957', 'U', '1151', 'X', '1251', '7461', '835', '705', 'J', '1815']
Output (English): U, 3979