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