Task: Program Execution
Input (English): 3, 4, ['5435', '8491', '747', 'S', 'O', '1667', 'D', 'N', '3089', '2651', 'W', 'e', '9589']
Output (English): 747