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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    static int y, w;
    static final int num = 6;
    static int r;
    static int p;
    static int numerator, maqam;


    static int max(int n1, int n2) {
        if (n1 >= n2) return n1;
        else {
            return n2;
        }

    }

    public static void main(String[] args) {
        //Dare your dream is big Astro Devo
        FastReader input = new FastReader();

        y = input.nextInt();
        w = input.nextInt();


        p = num - max(y, w) + 1;

        numerator = p;
        maqam = num;
        while ((numerator % 2 == 0 && maqam % 2 == 0) ||
                (numerator % 3 == 0 && maqam % 3 == 0) ||
                (numerator % 5 == 0 && maqam % 5 == 0)) {

            if ((numerator % 5 == 0 && maqam % 5 == 0)) {
                maqam = maqam / 5;
                numerator = numerator / 5;

            }
            if ((numerator % 3 == 0 && maqam % 3 == 0)) {
                maqam = maqam / 3;
                numerator = numerator / 3;


            }
            if ((numerator % 2 == 0 && maqam % 2 == 0)) {
                maqam = maqam / 2;
                numerator = numerator / 2;

            }




        }
        System.out.print(numerator + "/" + maqam);


    }


    public static class FastReader {

        BufferedReader br;
        StringTokenizer st;

        FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String string = "";
            try {
                string = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return string;
        }

        char nextChar() {
            return next().charAt(0);
        }

    }
}