#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int c;
  c = (6 - max(a, b)) + 1;
  if (c % 2 == 1) {
    if (c == 3)
      printf("1/2\n");
    else
      printf("%d/6\n", c);
  } else {
    if (c == 4)
      printf("2/3\n");
    else
      printf("1/%d\n", 6 / c);
  }
  return 0;
}
