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

# Created by Minsol Jeong
import math
def A():
    y, w = [int(x) for x in input().split()]
    d = [int(x) for x in range(max(y,w),7)]
    gcd = math.gcd(len(d), 6)
    numer = 1
    denom = 6
    if (gcd!=1):
        numer = len(d) // gcd
        denom = 6 // gcd
        print(numer, )
    if (len(d) ==0):
        numer = 0
        denom = 1

    print(numer,"/",denom, sep="")


if __name__=='__main__':
    A()
 		   	 	  		    	 		    		