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

def lowestForm(numerator,denominator):
    final_nums = []
    if numerator > denominator:
        num = denominator
    elif denominator > numerator:
        num = numerator
    elif denominator == numerator:
        final_nums.append(1)
        final_nums.append(1)
        return [round(float(final_nums[-2])),round(float(final_nums[-1]))]
    for i in range(num + 1):
        if i == 0 or i == 1:
            pass
        else:
            lower1 = numerator / i
            lower2 = denominator / i
            if len(str(lower1)) <= len(str(numerator)) + 2 and len(str(lower2)) <= len(str(denominator)) + 2:
                lower1 = str(lower1)
                lower2 = str(lower2)
                if int(lower1[-1]) == 0 and int(lower2[-1]) == 0:
                   final_nums.append(lower1)
                   final_nums.append(lower2)
                else:
                    pass
    if len(final_nums) == 0:
        return [numerator,denominator]
    else:
        return [round(float(final_nums[-2])),round(float(final_nums[-1]))]
integer = input().split()
for i in range(len(integer)):
    integer[i] = int(integer[i])
numerator = 6-max(integer)+1
denominator = 6
array = lowestForm(numerator, denominator)
print(str(array[0])+"/"+str(array[1]))

