Task: Program Execution
Input (English): G 4105 K P 4125 89 C 3545 I 9151 G 7241 4495 c 7277 2081 9831 w D g I 5825 h n 5061 n 525 8131 S F
Output (English): 7, 4105, 11, 16, 4125, 89, 3, 3545, 9, 9151, 7, 7241, 4495, 3, 7277, 2081, 9831, 23, 4, 7, 9, 5825, 8, 14, 5061, 14, 525, 8131, 19, 6