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