#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a == 1 & b == 1) {
    cout << "1/1" << endl;
  } else {
    if (a > b) {
      int c = 6 - (a - 1);
      if (c == 1)
        cout << "1/6" << endl;
      else if (c == 2)
        cout << "1/3" << endl;
      else if (c == 3)
        cout << "1/2" << endl;
      else if (c == 4)
        cout << "2/3" << endl;
      else if (c == 5)
        cout << "5/6" << endl;
    } else {
      int c = 6 - (b - 1);
      if (c == 1)
        cout << "1/6" << endl;
      else if (c == 2)
        cout << "1/3" << endl;
      else if (c == 3)
        cout << "1/2" << endl;
      else if (c == 4)
        cout << "2/3" << endl;
      else if (c == 5)
        cout << "5/6" << endl;
    }
  }
}
