#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream& operator>>(istream& in, vector<T>& v) {
  for (int i = (0); i < int(v.size()); ++i) in >> v[i];
  return in;
}
template <typename A, typename B>
istream& operator>>(istream& in, pair<A, B>& p) {
  in >> p.first >> p.second;
  return in;
}
template <typename T>
ostream& operator<<(ostream& out, vector<T>& v) {
  if (v.size()) out << v[0];
  for (int i = (1); i < int(v.size()); ++i) out << ' ' << v[i];
  return out;
}
template <typename A, typename B>
ostream& operator<<(ostream& out, pair<A, B>& p) {
  out << p.first << ' ' << p.second;
  return out;
}
int main() {
  int a, b;
  cin >> a >> b;
  int mx = max(a, b);
  if (mx == 1) cout << "1/1" << endl;
  if (mx == 2) cout << "5/6" << endl;
  if (mx == 3) cout << "2/3" << endl;
  if (mx == 4) cout << "1/2" << endl;
  if (mx == 5) cout << "1/3" << endl;
  if (mx == 6) cout << "1/6" << endl;
}
