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

public class App {
	static class InputReader {
		BufferedReader reader;
		StringTokenizer tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream), 32768);
			tokenizer = null;
		}

		String next() { // reads in the next string
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		} // reads in the next int

		public long nextLong() {
			return Long.parseLong(next());
		} // reads in the next long

		public double nextDouble() {
			return Double.parseDouble(next());
		} // reads in the next double
	}

	static InputReader r = new InputReader(System.in);
	static PrintWriter pw = new PrintWriter(System.out);

	public static void main(String[] args) {
		// YOUR CODE HERE
		int Y = r.nextInt();
		int W = r.nextInt();
		int max = Math.max(Y, W);
		int numerator = 6 - max + 1;

		if (numerator == 6) {
			System.out.println("1/1");
		} else if (numerator == 4) {
			System.out.println("2/3");
		} else if (numerator == 3) {
			System.out.println("1/2");
		} else if (numerator == 2) {
			System.out.println("1//3");
		} else {
			System.out.println(numerator + "/6");
		}
		pw.close(); // flushes the output once printing is done
	}

	public static void printArray(int[] arr) {
		for (int i : arr) {
			pw.print(i + " ");
		}
	}

	public static void printArrayList(ArrayList<Integer> list) {
		for (int i : list) {
			pw.println(i);
		}
	}

}

//if (i - 1 == 0 && arr[i - 1] <= arr[i]) {
//	testCount++;
//} else {
//}
//if (i + 1 == arr.length - 1 && arr[i + 1] <= arr[i]) {
//	testCount++;
//} else {
//}