#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int y, w;
  cin >> y >> w;
  int x = 6 - max(y, w) + 1;
  cout << x / gcd(x, 6) << "/" << 6 / gcd(x, 6) << endl;
  return 0;
}
