Task: Program Execution
Input (English): 5, 5, ['U', '2277', '1185', '5223', '1187', 'n', '1739', '8801', '6491']
Output (English): 7811