Task: Program Execution
Input (English): 2187, E, K, M, 1085, j, 4595, g, i, q, 5781, 8345, B, g
Output (English): 2187, 1085, 4595, 5781, 8345