Task: Program Execution
Input (English): A 6373 5813 V m 7243 a q 7423 I f H 5207 J T N 333 1837 T 8073 h 7045 5005 R 261 p 6587 5797 j 1193 W m 827
Output (English): 1, 6373, 5813, 22, 13, 7243, 1, 17, 7423, 9, 6, 8, 5207, 10, 20, 14, 333, 1837, 20, 8073, 8, 7045, 5005, 18, 261, 16, 6587, 5797, 10, 1193, 23, 13, 827