Task: Program Execution
Input (English): 5, 21, ['g', '6479', 'J', '1569', 'L', '6509', '7709', 'C', 'i', '4111', 'W', '6051', 'b', 'r', '2913', '8793', 'y', 'i', '4431', 'J', 'h', '1509', 'j', '8455']
Output (English): 40517