Statement | You are given two or more sequences of 'o's (nonnegative number of consecutive 'o's) separated by ','. Replace it with the shortest sequence. Constraints * The number of consecutive 'o's does not exceed 10. * The number of ','s does not exceed 4. |
---|---|
Sample Input | |
Sample Output |