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