Task: Program Execution
Input (English): E 8923 T 8055 J H 6991 J 5321 M h B 179 741 y v 431 W 8057 6111 2185 g M 2537 y 9269 T F X 2577 b M 1857
Output (English): 5, 8923, 20, 8055, 10, 8, 6991, 10, 5321, 13, 8, 2, 179, 741, 25, 22, 431, 23, 8057, 6111, 2185, 7, 13, 2537, 25, 9269, 20, 6, 24, 2577, 2, 13, 1857