#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  int y, w;
  cin >> y >> w;
  int p = max(y, w);
  int cnt = (6 - p) + 1;
  int x = gcd(cnt, 6);
  cout << cnt / x << "/" << 6 / x << endl;
  return 0;
}
