Task: Program Execution
Input (English): p, 481, d, p, 171, 151, 453, d, 35, g, 145, n, i, p
Output (English): 1, 3, 4, 5, 7, 8