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 ; 

/**
 *
 * @author Mohammed_emad
 */
public class Die_roll02 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int n1,n2,bigger ;
        String prob = "0" ; 
        String[] arr = new String[]{"1/1","5/6","2/3","1/2","1/3","1/6"};
        Scanner in = new Scanner(System.in) ; 
        n1 = in.nextInt();
        n2 = in.nextInt() ; 
        if(n1>n2)
            bigger = n1;
        else 
            bigger = n2 ; 
       
       switch (bigger)
       {
           case 1 :
                  prob = arr[0] ; 
                  break ; 
            case 2 :
                  prob = arr[1] ; 
                  break ;      
            case 3 :
                  prob = arr[2] ; 
                  break ;     
            case 4:
                  prob = arr[3] ; 
                  break ;     
            case 5 :
                  prob = arr[4] ; 
                  break ;     
            case 6 :
                  prob = arr[5] ; 
                  break ;      
                  
                         
       }
        System.out.println(prob);
           

       }
    
}
