#include <bits/stdc++.h>
using namespace std;
;
void solve() {
  int a, b;
  cin >> a >> b;
  a = max(a, b);
  int x = 7 - a;
  if (x == 1) {
    cout << "1/6\n";
  }
  if (x == 2) {
    cout << "1/3\n";
  }
  if (x == 3) {
    cout << "1/2\n";
  }
  if (x == 4) {
    cout << "2/3\n";
  }
  if (x == 5) {
    cout << "5/6\n";
  }
  if (x == 6) {
    cout << "1/1\n";
  }
}
int main() { solve(); }
