Task: Program Execution
Input (English): 677 J B 4987 6385 D 4267 2227 G m 1421 D d D a 807 O M B b Z o Y h 6851 y 2787 D b X 4575 k Z 3981
Output (English): 677, 10, 2, 4987, 6385, 4, 4267, 2227, 7, 13, 1421, 4, 4, 4, 1, 807, 15, 13, 2, 2, 26, 15, 25, 8, 6851, 25, 2787, 4, 2, 24, 4575, 11, 26, 3981