Task: Program Execution
Input (English): 5217, Z, 161, 9839, 7367, p, O, T, R, 9369, 9867, 2801
Output (English): 2, 6, 7, 8, 9