Task: Program Execution
Input (English): c, c, 1771, 965, 9837, m, 2517, q, r
Output (English): c, m, q, r