Task: Program Execution
Input (English): 2, ['Q', 'Q', '1957', 'P']
Output (English): Q, Q