Task: Program Execution
Input (English): 6915, 8593, 4347, P, 9157, R, 6673
Output (English): 1, 2, 3, 5, 7