Task: Program Execution
Input (English): 7, ['3241', 'T', '8565', '4001', 'S', 'S', '163', '2797', 'R', 'R', 'i', '5967', 'W', '7003', 'J', '3941']
Output (English): 3241, 2797, J