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

# import numpy as np

def solution():
    numbers = array_to_int(input().split(" "))
    max = numbers[0] if numbers[0] > numbers[1] else numbers[1]
    print(to_mixed_frac((6 - max + 1), 6))


def to_mixed_frac(first, second):
    while True:
        for i in range(2, first+1):
            if first % i == 0 and second % i == 0:
                first //= i
                second //= i
                break
        else:
            break
    return str(first) + "/" + str(second)


def array_to_int(array):
    for i in range(len(array)):
        array[i] = int(array[i])
    return array


def join0(array):
    result = ""
    for i in array:
        result += str(i)
    return result


solution()
# input-output by console
