#include <bits/stdc++.h>
int main() {
  int n, m, high, i, p;
  scanf("%d%d", &n, &m);
  high = (n > m) ? n : m;
  p = (6 - high) + 1;
  for (i = p; i > 0; i--) {
    if ((p % i == 0) && (6 % i == 0)) {
      printf("%d/%d", p / i, 6 / i);
      break;
    }
  }
  return 0;
}
