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