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

//submit it first

import java.util.*;
import java.io.*;//1 1 2 3 3        2 2 4 8 8
public class temp{
public static void main(String[] args)throws Exception{
    //File f=new File("/home/ujjwal/Desktop/new.txt");
Scanner sc=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
int a=sc.nextInt(),b=sc.nextInt();
int c=7-Math.max(a,b);
int k=s(c);
int e=c/k;
int r=6/k;
System.out.println(e+"/"+r);

}
static int s(int a){int k=1;
for(int i=2;i<=a;i++){
if(a%i==0 && 6%i==0){
k=i;
}
}
return k;
}
}
