6 6
 1 4
 4 4
 3 3
 6 4
 6 3
 5 4
 5 6
 3 4
 1 3
 3 2
 5 5
 1 1
 2 1
 3 1
 3 5
 1 6
 6 5
 2 3
 4 3
 2 2
 3 6
 1 2
 6 1
 2 5
 4 5
 1 5
 6 2
 4 6
 5 1
 4 1
 5 2
 2 4
 2 6
 5 3

1/6
 1/2
 1/2
 2/3
 1/6
 1/6
 1/3
 1/6
 1/2
 2/3
 2/3
 1/3
 1/1
 5/6
 2/3
 1/3
 1/6
 1/6
 2/3
 1/2
 5/6
 1/6
 5/6
 1/6
 1/3
 1/3
 1/3
 1/6
 1/6
 1/3
 1/2
 1/3
 1/2
 1/6
 1/3

from fractions import Fraction

roll1, roll2 = map(int, input().split())
max_roll = max(roll1, roll2)
num_faces = 6  # number of faces on the dice

points_to_win = num_faces - max_roll + 1
chance_to_win = Fraction(points_to_win, num_faces)
print(str(chance_to_win.numerator) + '/' + str(chance_to_win.denominator))

# if roll1 == roll2:
#     print('1/1')
# elif roll1 == num_faces or roll2 == num_faces:
#     print('0/1')
# else:
#     points_to_win = num_faces - max(roll1, roll2)
#     chance_win = Fraction(points_to_win, num_faces)
#     print(str(chance_win.numerator) + '/' + str(chance_win.denominator))
