Task: Program Execution
Input (English): q, 259, a, 481, 47, a, 323, 293, 5, 499, n, p
Output (English): 1, 2, 3, 4, 5, 7, 8, 9