Task: Program Execution
Input (English): 865 473 1081 A 691 P 3853 3763 y e k t 8861 t A C 7197 533 G a W 1929 5901 z P w J 7167
Output (English): 865, 473, 1081, 1, 691, 16, 3853, 3763, 25, 5, 11, 20, 8861, 20, 1, 3, 7197, 533, 7, 1, 23, 1929, 5901, 26, 16, 23, 10, 7167