#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int x, y;
  cin >> x >> y;
  int m = max(x, y);
  if (m == 6) {
    cout << "1/6" << endl;
    return 0;
  }
  if (m == 1) {
    cout << "1/1" << endl;
    return 0;
  }
  m = (6 - m) + 1;
  if (m % 2 == 0) {
    if (m == 2) cout << "1/3" << endl;
    if (m == 4) cout << "2/3" << endl;
  } else {
    if (m == 1) cout << "1/6" << endl;
    if (m == 3) cout << "1/2" << endl;
    if (m == 5) cout << "5/6" << endl;
  }
  return 0;
}
