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

 
public class Main{
    public static void main(String[] args) {
        MyScanner s = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int a=s.nextInt();
        int b=s.nextInt();
        //int max=0;
        int temp=a>=b?a:b;
        //int temp=6-max;
        if(temp==1) out.println("1/1");
        else if(temp==2) out.println("5/6");
        else if(temp==3) out.println("4/6");
        else if(temp==4) out.println("1/2");
        else if(temp==5) out.println("1/3");
        else if(temp==6) out.println("0/1");
        else out.println("0/1");
        
        out.close();
        
    }
    
    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
        public MyScanner() {
        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 str = "";
            try{
                str = br.readLine();
            } catch (IOException e){
                e.printStackTrace();
            }
            return str;
        }
    }
}