Shortest 2 golf


Statement
You are given pairs of two '|'s with a nonnegative number of spaces between them, which are separated by ','.
Replace it with the pair of two '|'s with the smallest number of spaces between them.

Constraints
* For each pair, the number of spaces between the two '|'s does not exceed 10.
* The number of ','s does not exceed 4.
Sample Input
Sample Output
Contest ID
0008
Writer
kurowassann
Publish date
2020/06/15 21:30:00
Solved
46
Best
7
Top player
Yupiteru