#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, s = 0;
  int max = 0;
  cin >> n >> m;
  if (n > m)
    max = n;
  else
    max = m;
  s = 7 - max;
  if (s == 6)
    cout << 1 << "/" << 1;
  else if (s % 2 == 0)
    cout << s / 2 << "/" << 3;
  else if (s % 3 == 0)
    cout << s / 3 << "/" << 2;
  else
    cout << s << "/" << 6;
  return 0;
}
