Task: Program Execution
Input (English): 3965 G 2557 7453 2585 7141 1331 j J 2781 h 8909 8533 H 9363 B 545 9753 3191 2797 1107 m 7937 F 3665 f 6375 U 1049 Q 5727 979 v 3901
Output (English): 3965, 7, 2557, 7453, 2585, 7141, 1331, 10, 10, 2781, 8, 8909, 8533, 8, 9363, 2, 545, 9753, 3191, 2797, 1107, 13, 7937, 6, 3665, 6, 6375, 21, 1049, 17, 5727, 979, 22, 3901