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 check_coprime(a,b):
    value=True
    i=2
    for i in range(2,min(a,b)+1):
        if b%i==0 and a%i==0:
           value=False
           break
    if value:
        return int(1)
    else:
        return i
y,w=input().split()
y=int(y)
w=int(w)
if y==w==1:
    print("1/1")
else:
    temp=max(y,w)
    count=0
    for i in range(temp,7):
        count+=1
    if (check_coprime(count,6))==1:
        print(str(count)+"/6")
    else:
        i=check_coprime(count, 6)
        count=int(count/i)
        denom=int(6/i)
        print(str(count)+"/"+str(denom))

