#include <bits/stdc++.h>
using namespace std;
int max(int a, int b) {
  int max = 0;
  if (a > b) {
    max = a;
  } else
    max = b;
  return max;
}
int main() {
  int Y, W;
  int answert;
  int answerb;
  cin >> Y >> W;
  int maxa = max(Y, W);
  answert = 6 - (maxa - 1);
  if (answert == 0) {
    answert = 1;
    answerb = 1;
  } else if (6 % answert == 0 && answert != 1) {
    answerb = 6 / answert;
    answert = 1;
  } else if (answert == 4) {
    answert = 2;
    answerb = 3;
  } else
    answerb = 6;
  cout << answert << "/" << answerb;
}
