Task: Program Execution
Input (English): Z, P, 1829, Z, q, 8445, 6693, 1953, K, L, 4427, 9507, 147
Output (English): Z, P, Z, q, K, L