#include <bits/stdc++.h>
using namespace std;
void probability(int cnt) {
  if (cnt == 0)
    cout << "0/1";
  else if (cnt == 6)
    cout << "1/1";
  else if (cnt == 1)
    cout << "1/6";
  else if (cnt == 2)
    cout << "1/3";
  else if (cnt == 3)
    cout << "1/2";
  else if (cnt == 4)
    cout << "2/3";
  else if (cnt == 5)
    cout << "5/6";
}
int main() {
  int Y, W;
  cin >> Y >> W;
  int dado[6];
  for (int i = 0; i < 6; i++) dado[i] = 0;
  for (int i = 0; i < 6; i++)
    if (i < Y - 1 || i < W - 1) dado[i] = 1;
  int cnt = 0;
  for (int i = 0; i < 6; i++)
    if (dado[i] == 0) cnt++;
  probability(cnt);
}
