#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w, x, counter = 0;
  cin >> y >> w;
  x = max(y, w);
  for (int i = x; i <= 6; i++) {
    counter++;
  }
  if (counter == 0)
    cout << "0/1";
  else if (counter == 1)
    cout << "1/6";
  else if (counter == 2)
    cout << "1/3";
  else if (counter == 3)
    cout << "1/2";
  else if (counter == 4)
    cout << "2/3";
  else if (counter == 5)
    cout << "5/6";
  else
    cout << "1/1";
  return 0;
}
