Task: Program Execution
Input (English): 5843 1159 5265 8137 F T 6137 979 701 f J R 1255 5399 K R 8599 M 6433 V 8767 J 7763 8225 4569 4969 6757 6377 3227 7423 w
Output (English): 5843, 1159, 5265, 8137, 6, 20, 6137, 979, 701, 6, 10, 18, 1255, 5399, 11, 18, 8599, 13, 6433, 22, 8767, 10, 7763, 8225, 4569, 4969, 6757, 6377, 3227, 7423, 23