Task: Program Execution
Input (English): 7, ['7', '6115', 'h', '3855', '4221', '1873', 'B', '4945', '3323', 'U', 'I', 'H', '1017', '3879', '5163', '9951', '4527', '5929', 'P']
Output (English): 4945, 3323, U, I, H, 1017, 3879, 5163, 9951, 4527, 5929, P