#include <bits/stdc++.h>
using namespace std;
void dice() {
  int x, y;
  cin >> x >> y;
  x = max(x, y);
  vector<string> str;
  str = {"1/6", "1/3", "1/2", "2/3", "5/6", "1/1"};
  x = 6 - x + 1;
  cout << str[x - 1] << endl;
}
int main() { dice(); }
