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