Task: Program Execution
Input (English): 12, 12, ['N', '21', 'e', 'T', 'W', '9777', '9527', '7969', 'w', '5801', '7369', '7565', '841', '1643', 'A', '5131', 'l', 'N', 'o']
Output (English): 7565