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;

public class A {
    /*
     * In a Programming contest, you are expected to print the output at the
     * end, so `output` variable will hold all the processed results till the
     * end
     */
    public static String output = "";

    // Program's starting point
    public static void main(String[] args) {

        /*
         * A Scanner class slows down Input/Output a LOT ,thereby increasing
         * your code execution time , Hence for best results that is Fast I/O
         * try to use BufferedReader
         */
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        /*
         * Generally Code Chef, Hacker Rank gives X number of test cases so we
         * process the input for each.
         */
        final int cases;
        try {

            /*
             * Logic of the program must be separated from the meta code to
             * increase readability and help debugging easier
             * Also note that Solver object is created inside for loop to
             * avoid multiple object creation that drastically increases
             * execution time and memory usage
             */
            Solver solver = new Solver();
            String[] s = br.readLine().split(" ");
            int y = Integer.parseInt(s[0]);
            int w = Integer.parseInt(s[1]);
            solver.solve(y, w);


        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        // Print the final output
        System.out.println(output);
    }
}

class Solver {

    /*
     * Logic goes here ...
     * Add to the global variables after processing the input
     * Maybe reverse a string or parse to an integer or , etc.
     */
    public void solve(int y, int w) {
        String ans = "";
        int num = 6 - Math.max(y, w) + 1;

        if(num == 2) ans = "1/3";
        else if(num == 3) ans = "1/2";
        else if(num == 4) ans = "2/3";
        else ans = num +"/6";

        A.output = A.output.concat(ans);
    }

}

