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 Tue Jul  9 08:31:38 2019

@author: avina
"""

n,m = map(int, input().split())
q = 6
d = max(n,m)
e = 6 - d +1
if e%6 == 0:
    e=1
    q =1
elif e%2==0:
    e = e//2
    q//=2
elif e%3==0:
    e//=3
    q//=3
print(str(e) + '/' + str(q))
    