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 double eps = 1e-9;
const double pi = acos(-1.0);
const int maxn = (int)1e5 + 10;
const int mod = (int)1e9;
long long a, b, c, d, i, j, k, l, t, n, m, p, q, r, s;
char h;
double e, f, g;
vector<long long> u, v, w;
string x, y, z;
map<string, long long> mm;
int main() {
  while (cin >> a >> b) {
    c = max(a, b);
    c = 6 - c + 1;
    if (a == b)
      cout << "1/1\n";
    else if (c % 2 == 0)
      cout << c / 2 << '/' << 3 << endl;
    else if (c % 3 == 0)
      cout << c / 3 << '/' << 2 << endl;
    else
      cout << c << '/' << 6 << endl;
  }
  return 0;
}
