6 6
 1 4
 4 4
 3 3
 6 4
 6 3
 5 4
 5 6
 3 4
 1 3
 3 2
 5 5
 1 1
 2 1
 3 1
 3 5
 1 6
 6 5
 2 3
 4 3
 2 2
 3 6
 1 2
 6 1
 2 5
 4 5
 1 5
 6 2
 4 6
 5 1
 4 1
 5 2
 2 4
 2 6
 5 3

1/6
 1/2
 1/2
 2/3
 1/6
 1/6
 1/3
 1/6
 1/2
 2/3
 2/3
 1/3
 1/1
 5/6
 2/3
 1/3
 1/6
 1/6
 2/3
 1/2
 5/6
 1/6
 5/6
 1/6
 1/3
 1/3
 1/3
 1/6
 1/6
 1/3
 1/2
 1/3
 1/2
 1/6
 1/3

#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;
}
