Task: Program Execution
Input (English): 2, 7, ['5929', 'f', '7847', 'A', '1167', 'Q', '2403', 'l', '1747', '3105', '2951', 'W', 'Y', '8637', '2057', '6101', 'p']
Output (English): f, 1747, 6101