Task: Program Execution
Input (English): 2, 2, ['Y', '7823', '3127', 'F']
Output (English): 7823