#include <bits/stdc++.h>
int main() {
  int s, r, k;
  scanf("%d %d", &s, &k);
  if (s > k)
    r = 6 - s + 1;
  else
    r = 6 - k + 1;
  switch (r) {
    case 1:
      printf("1/6");
      break;
    case 3:
      printf("1/2");
      break;
    case 2:
      printf("1/3");
      break;
    case 4:
      printf("2/3");
      break;
    case 5:
      printf("5/6");
      break;
    case 6:
      printf("1/1");
      break;
    case 0:
      printf("0/1");
      break;
  }
}
