#include <bits/stdc++.h>
using namespace std;
int main() {
  int y = 0, w = 0, ansNum = 0, ansDenom = 6;
  cin >> y >> w;
  ansNum = 6 - max(y, w) + 1;
  for (int i = 2; i <= 3; ++i) {
    if (!(ansNum % i) && !(ansDenom % i)) {
      ansNum /= i;
      ansDenom /= i;
    }
  }
  cout << ansNum << '/' << ansDenom;
  return 0;
}
