Task: Program Execution
Input (English): k, 7993, 4623, 1965, k, p, q, 9757, z, g, m
Output (English): g, k, m, p, q, z