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.Scanner;

/**
 * Created by kareem on 1/29/2018.
 */
public class test {
    public  static void  main(String [] args){

        Scanner m= new Scanner(System.in);
int g=0;
        int Y =m.nextInt();
        int W =m.nextInt();
        int v=0;
        if(W>Y){
            v=6-W+1;

        }else if(W<Y){
            v=6-Y+1;
        }else {
            v=6-W+1;
        }
int dm=6;
        if (dm%v==0){
            dm=6/v;
            v=v/v;

        }else if (v%2==0){
            dm=dm/2;
            v=v/2;
            if (v%3==0){
                dm=dm/3;
                v=v/3;
            }

        }



        System.out.println(v+"/"+dm);

    }
}
