#include <bits/stdc++.h>
using namespace std;
int max(int a, int b) {
  if (a > b) {
    return a;
  } else {
    return b;
  }
}
int hcf(int a, int b) {
  if (a % b == 0) {
    return b;
  } else {
    return hcf(b, a % b);
  }
}
int main() {
  int a, b;
  cin >> a >> b;
  a = max(a, b);
  b = 6 - a + 1;
  a = hcf(6, b);
  cout << b / a << "/" << 6 / a;
  return 0;
}
