Task: Program Execution
Input (English): Q, p, g, R, p, u, 1197, B, N, 6177, 4605, 6279, n, 5831, K, 479, K, i, 9621, 1955, i, n
Output (English): 1, 2, 3, 4, 5, 6, 8, 9, 13, 15, 17, 18, 21, 22