Task: Program Execution
Input (English): 2, ['X', '5077', 'F', 'R', 'R']
Output (English): X, 5077