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