Two Slicers

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

Petya and his friends want to celebrate his birthday party! Petya has a round cake for the occassion. The only thing left is to divide it, and they will have tea.

In order to divide the cake, Petya is going to use slicers. Each slicer has a few blades: a kk-slicer is a device which makes kk straight cuts from the center of the cake to its boundary, and thus divides the round cake into kk identical sectors.

Petya has a red aa-slicer and a blue bb-slicer. Fortunately, there are exactly a+ba + b friends at the party including Petya. So he decided to use each slicer once, so that the cake will be divided into exactly a+ba + b sectors.

After using the two slicers, the resulting a+ba + b sectors may have different sizes. Nevertheless, the cake should be divided as fairly as possible: the difference between the largest sector and the smallest sector should be the minimum possible.

Find out what is the minimum possible difference that Petya can achieve. Find the difference between the areas of the largest and the smallest sectors after the optimal division. Regard the area of the whole cake as 11. Print the resulting area difference as an irreducible fraction.

입력

The first line of input contains two space-separated integers aa and bb: the parameters of red and blue slicers (2a,b1002 \le a, b \le 100).

출력

Print an irreducible fraction in the form $a$ / $b$: the difference between the areas of the largest and the smallest of the a+ba + b resulting sectors after the slicers are applied optimally.

힌트

The result of optimal use of slicers is shown to the below of the examples. The cuts made by the red aa-slicer are shown as pale red thick lines. The cuts made by the blue bb-slicer are shown as blue thin dotted lines.