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