#include <bits/stdc++.h>
using namespace std;
void init() {}
const double EPS = 1e-9;
const int INF = (int)1e9 + 41;
const int N = (int)1e6 + 34;
long long st(long long a, long long b, long long c) {
  if (b == 0) return 1;
  if (b % 2 == 1)
    return (a * st(a, b - 1, c)) % c;
  else
    return st((a * a) % c, b / 2, c);
}
string s[7] = {"0", "1/1", "5/6", "2/3", "1/2", "1/3", "1/6"};
void solve() {
  int a, b;
  cin >> a >> b;
  a = max(a, b);
  cout << s[a];
}
int main() {
  init();
  solve();
  return 0;
}
