#include <bits/stdc++.h>
int main() {
  int y, w, c, d;
  scanf("%d%d", &y, &w);
  c = y;
  if (c < w) c = w;
  d = 6 - c + 1;
  if (d == 1)
    printf("%s", "1/6");
  else if (d == 2)
    printf("%s", "1/3");
  else if (d == 3)
    printf("%s", "1/2");
  else if (d == 4)
    printf("%s", "2/3");
  else if (d == 5)
    printf("%s", "5/6");
  else if (d == 6)
    printf("%s", "1/1");
}
