#include <bits/stdc++.h>
#pragma comment(linker, "/stack:4294967296")
using namespace std;
int gcd(int a, int b) { return a ? gcd(b % a, a) : b; }
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  int x, y;
  cin >> x >> y;
  int z = 6 - max(x, y) + 1;
  int g = gcd(z, 6);
  cout << z / g << "/" << 6 / g << endl;
  return 0;
}
