Task: Program Execution
Input (English): Z a E 5235 8257 g h c p 3171 8531 9187 9545 e u 1969 T 7669 9857 F 877 Z 3409 5239 2307 n 7007 8191 E 4011 8193 C r p E
Output (English): 26, 1, 5, 5235, 8257, 7, 8, 3, 16, 3171, 8531, 9187, 9545, 5, 21, 1969, 20, 7669, 9857, 6, 877, 26, 3409, 5239, 2307, 14, 7007, 8191, 5, 4011, 8193, 3, 18, 16, 5