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.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        FastScanner scanner = new FastScanner();

//        int t = scanner.nextInt();
//        while (t-- > 0)
        solve(scanner);

    }


    static void solve(FastScanner in) {

        int y = in.nextInt();
        int w = in.nextInt();
        int a = 6 - (Math.max(y, w) - 1);
        int b = 6;
        if (a==0){
            System.out.println("0/1");
            return;
        }
        if (b % a == 0) {
            b /= a;
            a = 1;
        }
        System.out.println(a + "/" + b);
    }


    static class FastScanner {
        private BufferedReader reader;
        private StringTokenizer tokinizer;


        public FastScanner() {
            initilize(System.in);
        }


        public FastScanner(String path) {
            try {
                initilize(new FileInputStream(new File(path)));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private void initilize(InputStream in) {
            reader = new BufferedReader(new InputStreamReader(in));
        }

        private String getToken() {
            while (tokinizer == null || !tokinizer.hasMoreTokens()) {
                try {
                    String str = reader.readLine();
                    if (str != null) tokinizer = new StringTokenizer(str);
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return tokinizer.nextToken();
        }


        public int nextInt() {
            return Integer.parseInt(getToken());
        }

        public long nextLong() {
            return Long.parseLong(getToken());
        }

        public double nextDouble() {
            return Double.parseDouble(getToken());
        }

        public String next() {
            return getToken();
        }

        public String nextLine() {
            String str = "";
            try {
                str = reader.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}