#include <bits/stdc++.h>
using namespace std;
int main() {
  int y, w, kol = 0, ans;
  cin >> y >> w;
  ans = 7 - max(y, w);
  if (ans == 2) {
    cout << "1/3";
    return 0;
  }
  if (ans == 3) {
    cout << "1/2";
    return 0;
  }
  if (ans == 4) {
    cout << "2/3";
    return 0;
  }
  if (ans == 6) {
    cout << "1/1";
    return 0;
  }
  cout << ans << "/6";
  return 0;
}
