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 N = 1e6 + 20, S = 1e2;
const long long inf = 1e17;
long long p[N], a[N], b[N], ab[S][S];
char arch[N], cbl[S][S];
vector<long long> v, g[N];
bool mark[N], be = false, bo = false;
long long n, d, c, c1, m, k, q, l, r, mn = inf, mx1 = 0, mx = 0, ans = 0,
                                      ans1 = 1, cnt = 0, sum = 0, odd = 0,
                                      even = 0;
int i = 0, j = 0;
string s, t;
int main() {
  std::ios::sync_with_stdio(false);
  cin >> n >> m;
  mx = max(n, m);
  if (mx == 1) {
    cout << "1/1";
  }
  if (mx == 2) {
    cout << "5/6";
  }
  if (mx == 3) {
    cout << "2/3";
  }
  if (mx == 4) {
    cout << "1/2";
  }
  if (mx == 5) {
    cout << "1/3";
  }
  if (mx == 6) {
    cout << "1/6";
  }
  cout << '\n';
  return 0;
}
