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

n = list(map(int, input().split()))

if n[0] == 0 and n[1] == 0:
    print(f"{0}/{1}")
elif n[0] >= n[1]:
    result = 6 - n[0] + 1
    if (6 / result).is_integer():
        print(f"{int(result/result)}/{int(6/result)}")
    elif (result / 6) == (2/3):
        print(f"{2}/{3}")
    else:
        print(f"{result}/{6}")
elif n[1] >= n[0]:
    result = 6 - n[1] + 1
    if (6 / result).is_integer():
        print(f"{int(result/result)}/{int(6/result)}")
    elif (result / 6) == (2/3):
        print(f"{2}/{3}")
    else:
        print(f"{result}/{6}")
