Task: Program Execution
Input (English): 2597, 6471, R, 279, H, R, E, i, P, 2083, 8227, H, Z, W, 8901, 2317, 1649, 1251, H
Output (English): 1, 2, 4, 10, 11, 15, 16, 17, 18