Task: Program Execution
Input (English): p, 6337, B, 5827, 687, 7317, 6877, 4221, 6465, W, 1819, 6641, a, x, 3941, R, E, A, 6851, 7397
Output (English): 1, 3, 10, 13, 14, 16, 17, 18