Task: Program Execution
Input (English): 9473, 1501, 8767, 5747, 4005, 8263, P, Q, 6461, 541, 5817, 4951, q, 8197, o, 1379
Output (English): 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 14, 16