# PROBLEM LINK:

Practice

Contest

Author: Yash Shah

Tester: Roshan Gupta, Shivam Sarang, Hrishikesh Patel

Editorialist: Yash Shah

DIFFICULTY: EASY

PREREQUISITES: Math

PROBLEM:

Krish, Dhyanam and Hetvi are close friends. Their annual exam

has been just over and planned to go on trip in holiday after the

exam. Krish dreamt to go to Manali, Dhyanam thought about Goa,

its beaches, sun and sea. Hetvi choose the Ellora Caves as a

world heritage site.

But to their great regret, the holidays turned to be very short, so it

will be enough to visit one of the three above named places.

That’s why Krish, as the cleverest, came up with a truly genius

idea: let each of three roll an ordinary six-sided die, and the one

with the highest number of points will be the winner, and will take

the other two to the place of his/her dreams.

Krish thrown a die and got K points, Dhyanam - D points. It was

Hetvi’s turn. But she didn’t hurry. Hetvi wanted to know for sure

what were her chances to visit Ellora Caves.

It is known that Krish and Dhyanam are true gentlemen, that’s

why, if they have the same number of points with Hetvi, they will

let Hetvi win.

EXPLANATION:

Sample Test case:

Input:

4 2

Output:

1/2

- Here, K=4 and D=2, SoHetvi will go to Ellora Caves, if she is

lucky to roll 4, 5 or 6 points. Hence, Probability of Hetvi get 4, 5

or 6 points is 3/6 = 1/2.

SOLUTIONS:

## Setter's Solution

print([‘1/1’, ‘5/6’, ‘2/3’, ‘1/2’, ‘1/3’, ‘1/6’][max(map(int, input().split()))-1])