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

"""
$ pylint calderonsin.py
Global evaluation
-----------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

"""
from fractions import Fraction

def main():
    """Main function"""

    data = input()
    data=data.split()
    yakko = int(data[0])
    wakko = int(data[1])
    if yakko>=wakko:
        number=yakko
        if number == 7:
            print("0/1")
        elif number==1:
            print("1/1")

        else:
            number=6-yakko+1
            number = Fraction(number,6)
            print(number)
    else:
        number= wakko

        if number == 7:
            print("0/1")
        elif number==1:
            print("1/1")
        else:
            number=6-wakko+1
            number = Fraction(number,6)
            print(number)




main()


# $ python3 calderonsin.py build
# 602139  543855  1409727  707784
# 745831  738766  1493476  792403
# 881291  811859  732132  1458154
# 1016464 1525208 666583
