Task: Program Execution
Input (English): 2, ['1109', 'R', 'n', 'G']
Output (English): n, G