#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;
}
