Task: Program Execution
Input (English): 2, 10, ['g', '5001', '4407', '6317', '7907', 'H', 'p', 'S', 'W', '4631', 'R', 'f', 'e', '823', 'd', 'F', 'F', '4877', 'E', '7347', 'I', '8623', 'K', 'a', 'F']
Output (English): 4631, W, S, p, H, 7907, 6317, 4407, 5001