#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, counter = 0;
  cin >> x >> y;
  int m = max(x, y);
  while (m != 6) {
    m++;
    counter++;
  }
  string arr[6] = {"1/6", "1/3", "1/2", "2/3", "5/6", "1/1"};
  cout << arr[counter] << endl;
  return 0;
}
