#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w, num, den = 6;
  cin >> y >> w;
  int mx = max(y, w);
  int op = 6 - mx + 1;
  num = op;
  if (num % 6 == 0 && den % 6 == 0) {
    cout << num / 6 << "/" << den / 6;
    return 0;
  } else if (num % 3 == 0 && den % 3 == 0) {
    cout << num / 3 << "/" << den / 3;
    return 0;
  } else if (num % 2 == 0 && den % 2 == 0) {
    cout << num / 2 << "/" << den / 2;
    return 0;
  } else {
    cout << num << "/" << den;
    return 0;
  }
  if (num == 0) {
    cout << 0 / 1;
    return 0;
  }
}
