Task: Program Execution
Input (English): 3, 10, ['7627', '3363', '3733', '1035', '7157', '8899', 'p', 'd', 'S', '7183', 'g']
Output (English): 3733, 1035, 7157, 8899, p, d, S, 7183