Task: Program Execution
Input (English): 3701, Z, Z, 1729, D, G, 1731, 4799, 5155, 7551, 4547, B, S, V, u, a, 9237, u, A, h, 6591
Output (English): 3701, 1729, 1731, 4799, 5155, 7551, 4547, 9237, 6591