#include <bits/stdc++.h>
using namespace std;
int min(int a, int b) {
  if (a > b) {
    return b;
  }
  return a;
}
int max(int a, int b) {
  if (a < b) {
    return b;
  }
  return a;
}
int main() {
  int a, b;
  cin >> a >> b;
  int ans = 7 - max(a, b);
  if (ans == 1 || ans == 5) {
    cout << ans << "/6";
  } else if (ans == 2 || ans == 4) {
    cout << ans / 2 << "/3";
  } else if (ans == 3) {
    cout << "1/2";
  } else if (ans == 6) {
    cout << "1/1";
  } else {
    cout << "0/1";
  }
}
