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

public class Solution {

    static class Solver {

        Solver() {
        }

        public void solve(FastScanner sc, PrintWriter out) throws IOException {
            int n = sc.nextInt(), m = sc.nextInt();
            int max = Math.max(n, m);
            int k = 6-max+1;
            if(k == 0) {
                out.println("0/1");
            } else if(k == 1) {
                out.println("1/6");
            } else if(k == 2) {
                out.println("1/3");
            } else if(k == 3) {
                out.println("1/2");
            } else if(k == 4) {
                out.println("2/3");
            } else if(k == 5) {
                out.println("5/6");
            } else {
                out.println("1/1");
            }
                
        }

    }
    public static void main(String[] args) throws IOException{
        FastScanner scanner = new FastScanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        (new Solver()).solve(scanner, out);
        out.flush();

    }

    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch(Exception e) {
                e.printStackTrace();
            }
        }

        boolean hasNextToken() {
            if(st == null) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch(IOException e) {

                }
            }
            return st.hasMoreTokens();
        }

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

            return st.nextToken();
        }

        String nextLine() throws IOException{
            return br.readLine();
        }

        byte nextByte() {
            return Byte.parseByte(next());
        }

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

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