#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, z;
  cin >> a >> b;
  int count = 1;
  count += 6 - max(a, b);
  if (count == 0)
    cout << "0/1";
  else if (6 % count == 0) {
    z = 6 / count;
    cout << "1/" << z;
  } else if (count == 4) {
    cout << "2/3";
  } else if (count == 5) {
    cout << "5/6";
  }
  return 0;
}
