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;
int main() {
  vector<pair<double, string> > p(6);
  p[0].first = 6 % 6;
  p[0].second = "1/1";
  p[1].first = 5 % 6;
  p[1].second = "5/6";
  p[2].first = 4 % 6;
  p[2].second = "2/3";
  p[3].first = 3 % 6;
  p[3].second = "1/2";
  p[4].first = 2 % 6;
  p[4].second = "1/3";
  p[5].first = 1 % 6;
  p[5].second = "1/6";
  vector<int> x(2);
  for (int i = 0; i < 2; i++) cin >> x[i];
  sort(x.begin(), x.end());
  double prob = (7 - x[1]) % 6;
  for (int i = 0; i < 6; i++) {
    if (p[i].first == prob && x[1] <= 6) {
      cout << p[i].second << endl;
      return 0;
    }
  }
  cout << "0/1" << endl;
  return 0;
}
