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

m=0
v=[(1/6),(2/6),(3/6),(4/6),(5/6),(1/1)]
d=['1/6','1/3','1/2','2/3','5/6','1/1']
x,y=[int(z) for z in input().split()]
if x>y:
    c=x
else:
  c=y 
#print('c=',c)   
for b in range(c,7):
    m=m+1
    s=m/6
    #print('m',m)
for a in v:
  if a==s:
      f=v.index(a)
      print(d[f])
      break
    