Task: Program Execution
Input (English): g 7967 4043 U 5971 m J M 5865 7583 e 8485 2981 v 2335 J 783 6225 5127 p p 6477 z N w 5645 n 5941 7777
Output (English): 7, 7967, 4043, 21, 5971, 13, 10, 13, 5865, 7583, 5, 8485, 2981, 22, 2335, 10, 783, 6225, 5127, 16, 16, 6477, 26, 14, 23, 5645, 14, 5941, 7777