Task: Program Execution
Input (English): 2, 2, ['Y', '1179']
Output (English): 1179