#include <bits/stdc++.h>
using namespace std;
int ucln(int a) {
  int b = 6;
  while (a != b) {
    if (a > b) {
      a -= b;
    } else {
      b -= a;
    }
  }
  return a;
}
int main() {
  int a, b, c;
  cin >> a >> b;
  if ((a > b) || (a == b)) {
    c = 7 - a;
    ucln(c);
    cout << (c / ucln(c)) << "/" << (6 / ucln(c)) << endl;
  }
  if (a < b) {
    c = 7 - b;
    ucln(c);
    cout << (c / ucln(c)) << "/" << (6 / ucln(c));
  }
}
