#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w;
  cin >> y >> w;
  int max1 = max(y, w);
  int cnt = 0;
  for (int i = max1; i <= 6; i++) {
    cnt++;
  }
  int a = 6;
  int b = cnt;
  int c = a % b;
  int gcd = b;
  while (gcd > 0) {
    if (c <= 0) {
      gcd = b;
      break;
    }
    a = b;
    b = c;
    c = a % b;
  }
  cout << cnt / gcd << "/" << 6 / gcd << endl;
  return 0;
}
