Task: Program Execution
Input (English): 177, 2583, 9159, D, 9031, P, 273, 2821, s, d
Output (English): 4, 6, 9, 10