Task: Program Execution
Input (English): E, 517, P, 1607, 1057, k, 157, r, q, D, D, A, m, 1267, 8471, 1617, 1285, n, H
Output (English): 517, 1607, 1057, 157, 1267, 8471, 1617, 1285