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