Task: Program Execution
Input (English): 1501, 6181, 2891, O, 8159, X, A, 6513, P, O, U, 7843, 2319, 4555, 9179, x, 6917, p
Output (English): 4, 6, 7, 9, 10, 11, 16, 18