Task: Program Execution
Input (English): 2981 Q 2959 6279 Q P 2673 2037 y 6133 e O 6961 8143 5843 2465 B 5841 2069 w D 3865 9297 2715 G 7371 263 g 5657 3471 7253 9179 w 2167 j 1019
Output (English): 2981, 17, 2959, 6279, 17, 16, 2673, 2037, 25, 6133, 5, 15, 6961, 8143, 5843, 2465, 2, 5841, 2069, 23, 4, 3865, 9297, 2715, 7, 7371, 263, 7, 5657, 3471, 7253, 9179, 23, 2167, 10, 1019