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

num = input()
a = []


def get_the_data(count, num, arr):
    for i in range(0, len(num)):
        if num[i] == ' ':
            arr.append(int(num[count:i]))
            count = i+1
        elif i == len(num)-1:
            arr.append(int(num[count:len(num)]))
    return arr


def divisor(left,total):
    a = left
    while a > 0:
        if total % a == 0 and left % a == 0:
            left = int(left/a)
            total = int(total/a)
            break
        a -= 1
    return {
        'a':left,
        'b':total
    }

arr1 = get_the_data(0, num,  a)
arr1.sort()
dot_chance = 6 - arr1[1] + 1
result = str(divisor(dot_chance,6)["a"]) + '/' +str(divisor(dot_chance,6)["b"])
print(result)

