Task: Program Execution
Input (English): 2975 x 797 283 4563 E 893 X 1721 A 9851 6743 W K 1973 1731 M 8111 M N H 2431 t 5017 Q 977 K R 4671 4521 6825 p 4997 A s 2435
Output (English): 2975, 24, 797, 283, 4563, 5, 893, 24, 1721, 1, 9851, 6743, 23, 11, 1973, 1731, 13, 8111, 13, 14, 8, 2431, 20, 5017, 17, 977, 11, 18, 4671, 4521, 6825, 16, 4997, 1, 19, 2435