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