Task: Program Execution
Input (English): 7949 R n P n 909 z X D g 8135 4973 A R N 1415 M 83 z 3841 e 3067 7591 897 1839 9387 9479 5599 z 8353 h m 7001 Q
Output (English): 7949, 18, 14, 16, 14, 909, 26, 24, 4, 7, 8135, 4973, 1, 18, 14, 1415, 13, 83, 26, 3841, 5, 3067, 7591, 897, 1839, 9387, 9479, 5599, 26, 8353, 8, 13, 7001, 17