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;

public class SSs {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in) ;
		// Yakko's rolls 
		byte y = input.nextByte() ;
		//Wakko's rolls.
		byte w = input.nextByte() ;
		byte chances = (byte) (7 - get_the_bigger(y, w)) ;
		fraction(chances,(byte) 6);
		
	}
	public static byte get_the_bigger(byte n1 , byte n2) {
		if (n1 >= n2) {
			return n1 ;
		}
		else {
			return n2 ;
		}
	}
	public static void fraction (byte num , byte dome) {
		switch (num) {
		case 0 :
		{
			num = 0 ;
			dome = 1 ;
			break;
		}
		case 6 :
		{
			num = 1;
			dome = 1 ;
			break ;
		}
		case 2 :
		case 4 :
		{
		dome = 3 ;
		if (num == 4) {
			num = 2 ;
		}
		else {
				num = 1;
			}
		break ;
		}
		case 3 : 
		{
			num = 1;
			dome = 2 ;
			break ;
		}
		default : {
			num = 5 ;
			dome = 6 ;
			break ;
		}
		}
		System.out.println(num+"/"+dome);
	}}
