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

# -*- coding: utf-8 -*-
"""
Created on Fri Mar  8 21:38:06 2019

@author: felip
"""

from fractions import Fraction
def mcd(a, b):
	resto = 0
	while(b > 0):
		resto = b
		b = a % b
		a = resto
	return a
A, B = [ int(d) for d in input().split(' ') ]

if A>B:
    d=A-1
    k=6-d
    z=6
    e=k/mcd(k, z)
    r=z/mcd(k, z)
    print(str(int(e))+'/'+str(int(r)))
       
if A==B:
    d=A-1
    k=6-d
    z=6
    e=k/mcd(k, z)
    r=z/mcd(k, z)
    print(str(int(e)) +'/'+ str(int(r)))
if A< B:
    d=B-1
    k=6-d
    z=6
    e=k/mcd(k, z)
    r=z/mcd(k, z)
    print(str(int(e))+'/'+str(int(r)))
