#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w;
  while (cin >> y >> w) {
    int tmp = 7 - max(y, w);
    if (tmp == 6) {
      cout << "1/1";
      break;
    }
    if (tmp == 3)
      cout << "1/2";
    else if (tmp == 2 || tmp == 4)
      cout << tmp / 2 << "/3";
    else
      cout << tmp << "/6";
  }
  return 0;
}
