Task: Program Execution
Input (English): 1165 4381 Y r 7065 2531 4915 7845 5053 a z 3885 m r P S 3859 5989 T u y 5635 g 785 1161
Output (English): 1165, 4381, 25, 18, 7065, 2531, 4915, 7845, 5053, 1, 26, 3885, 13, 18, 16, 19, 3859, 5989, 20, 21, 25, 5635, 7, 785, 1161