Task: Program Execution
Input (English): 8701, 4921, 2867, b, J, m, 655, R, L, P
Output (English): 1, 2, 3, 7