Task: Program Execution
Input (English): N, 1917, O, D, M, g, 8931, 1055, 6195, 1115, G, k, Z, p, I, 4065
Output (English): 1917, 8931, 1055, 6195, 1115, 4065