Task: Program Execution
Input (English): 5843, E, Q, i, h, J, P, 965, a, R, 9821, 2451, 9775, 7755, B, d, W, K, C, 4539, T
Output (English): 5843, 965, 9821, 2451, 9775, 7755, 4539