Task: Program Execution
Input (English): p 6901 G g Q V 1811 Z 9937 y 2977 J 9681 7705 E 8689 C R 1699 5159 7995 X 2829 1279 1945 8191 3205 6323 9875
Output (English): 16, 6901, 7, 7, 17, 22, 1811, 26, 9937, 25, 2977, 10, 9681, 7705, 5, 8689, 3, 18, 1699, 5159, 7995, 24, 2829, 1279, 1945, 8191, 3205, 6323, 9875