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

import java.util.Scanner;

/**
 *
 * @author aso
 */
public class Problem19 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double num1 = in.nextInt();
        double num2 = in.nextInt();
        double res = 0;
        int res1 = 0;
        int res3 = 0;
        if (num1 > num2) {
            res = (6 - (num1 - 1)) / 6;
            int res2 = (int) (res * 10);
            if ((10 / res2) % 2 != 0) {
                System.out.println(res2 + "/" + 10);

            } else if (((10 / res2) % 2) == 0) {
                res1 = res2 / res2;
                res3 = 10 / res2;
                System.out.println(res1 + "/" + res3);

            }

        } else if (num2 > num1) {
            res = (6 - (num2 - 1)) / 6;
            int res2 = (int) (res * 10);
            if ((10 / res2) % 2 != 0) {
                System.out.println(res2 + "/" + 10);

            }

            if (((10 / res2) % 2) == 0) {
                res1 = res2 / res2;
                res3 = 10 / res2;
                System.out.println(res1 + "/" + res3);

            }
        }

    }

}

