#include <bits/stdc++.h>
int main() {
  int a, b, n, p = 6;
  scanf("%d %d", &a, &b);
  if (a >= b)
    n = 7 - a;
  else
    n = 7 - b;
  if (n == 2) {
    n = 1;
    p = 3;
  } else if (n == 3) {
    n = 1;
    p = 2;
  } else if (n == 4) {
    n = 2;
    p = 3;
  } else if (n == 6) {
    n = 1;
    p = 1;
  }
  printf("%d/%d\n", n, p);
}
