Task: Program Execution
Input (English): 671 2983 O 3667 2263 p D 4327 i o S 9781 9433 4833 R d r B u D 705 9505 S 6893 4679
Output (English): 671, 2983, 15, 3667, 2263, 16, 4, 4327, 9, 15, 19, 9781, 9433, 4833, 18, 4, 18, 2, 21, 4, 705, 9505, 19, 6893, 4679