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

ysl = raw_input('')

dl = len(ysl)
opr = 0
pCh = ''
vtCh = ''

for x in range(dl):
    if ysl[x] != ' ':
        if opr == 0:
            pCh = pCh + ysl[x]
        else:
            vtCh = vtCh + ysl[x]
    else:
        opr = 1

pCh = 7 - int(pCh)
vtCh = 7 - int(vtCh)

delCh = pCh

if pCh > vtCh:
    delCh = vtCh
else:
    delCh = pCh

pCh = delCh
vtCh = 6

dl = delCh

for x in range(dl):    
    if pCh % delCh != 0 or vtCh % delCh != 0:
        delCh = delCh - 1
    else:
        pCh = pCh / delCh
        vtCh = vtCh / delCh
        break

print str(pCh) + '/' + str(vtCh)
