Task: Program Execution
Input (English): 9993, f, q, J, 5097, s, 4205, Q, 5617, 6397, i, P, G, 4097, c, u, k, A, J, 7877, J
Output (English): 9993, 5097, 4205, 5617, 6397, 4097, 7877