#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w;
  cin >> y >> w;
  string pre[6] = {"1/6", "1/3", "1/2", "2/3", "5/6", "1/1"};
  if (y > w) {
    cout << pre[6 - y];
  } else if (w > y) {
    cout << pre[6 - w];
  } else if (y == w) {
    cout << pre[6 - y];
  }
}
