Task: Program Execution
Input (English): 2, 2, ['X', '4419', '4997', 'h']
Output (English): 4419