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

#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 1000005;
int SetBit(int n, int x) { return n | (1 << x); }
int ClearBit(int n, int x) { return n & ~(1 << x); }
int ToggleBit(int n, int x) { return n ^ (1 << x); }
bool CheckBit(int n, int x) { return (bool)(n & (1 << x)); }
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int w, y, max;
  cin >> w >> y;
  int a;
  if (w > y) {
    max = w;
  } else if (w == y) {
    max = w;
  } else {
    max = y;
  }
  if ((w == 6 && y == 6)) {
    cout << "1"
         << "/"
         << "6" << endl;
  } else if ((w == 6 && (y == 1 || y == 2 || y == 3 || y == 4 || y == 5))) {
    cout << "1"
         << "/"
         << "6" << endl;
  } else if ((y == 6 && (w == 1 || w == 2 || w == 3 || w == 4 || w == 5))) {
    cout << "1"
         << "/"
         << "6" << endl;
  } else {
    a = 6 - max + 1;
    if (a == 2) {
      cout << "1"
           << "/"
           << "3" << endl;
    }
    if (a == 3) {
      cout << "1"
           << "/"
           << "2" << endl;
    }
    if (a == 4) {
      cout << "2"
           << "/"
           << "3" << endl;
    }
    if (a == 5 || a == 1) {
      cout << a << "/"
           << "6" << endl;
    }
    if (a == 6) {
      cout << "1"
           << "/"
           << "1" << endl;
    }
  }
  return 0;
}
