Task: Program Execution
Input (English): 7785 9327 Y N 8637 K 533 9925 7161 J 4969 9547 481 8457 779 8045 Z y a 4967 Y 1927 f B 1109
Output (English): 7785, 9327, 25, 14, 8637, 11, 533, 9925, 7161, 10, 4969, 9547, 481, 8457, 779, 8045, 26, 25, 1, 4967, 25, 1927, 6, 2, 1109