Task: Program Execution
Input (English): 35, 1281, 573, 6817, 261, 9977, d, 4485, a, 3527, P, I, 7543, g, O, S, P
Output (English): 35, 1281, 573, 6817, 261, 9977, 4, 4485, 1, 3527, 16, 9, 7543, 7, 15, 19, 16