Task: Program Execution
Input (English): Z, 3307, U, m, 5567, E, 4101, 4751, I, R, M
Output (English): 3307, 5567, 4101, 4751