#include <bits/stdc++.h>
using namespace std;
int i, j;
int main() {
  int n, m;
  cin >> n >> m;
  if (m > n) {
    int ch = 6 - m + 1;
    if (ch == 1) {
      cout << "1/6";
    } else if (ch == 2) {
      cout << "1/3";
    } else if (ch == 3) {
      cout << "1/2";
    } else if (ch == 4) {
      cout << "2/3";
    } else if (ch == 5) {
      cout << "5/6";
    } else {
      cout << "1/1";
    }
  } else {
    int ch = 6 - n + 1;
    if (ch == 1) {
      cout << "1/6";
    } else if (ch == 2) {
      cout << "1/3";
    } else if (ch == 3) {
      cout << "1/2";
    } else if (ch == 4) {
      cout << "2/3";
    } else if (ch == 5) {
      cout << "5/6";
    } else {
      cout << "1/1";
    }
  }
}
