6 6
 1 4
 4 4
 3 3
 6 4
 6 3
 5 4
 5 6
 3 4
 1 3
 3 2
 5 5
 1 1
 2 1
 3 1
 3 5
 1 6
 6 5
 2 3
 4 3
 2 2
 3 6
 1 2
 6 1
 2 5
 4 5
 1 5
 6 2
 4 6
 5 1
 4 1
 5 2
 2 4
 2 6
 5 3

1/6
 1/2
 1/2
 2/3
 1/6
 1/6
 1/3
 1/6
 1/2
 2/3
 2/3
 1/3
 1/1
 5/6
 2/3
 1/3
 1/6
 1/6
 2/3
 1/2
 5/6
 1/6
 5/6
 1/6
 1/3
 1/3
 1/3
 1/6
 1/6
 1/3
 1/2
 1/3
 1/2
 1/6
 1/3

#include <bits/stdc++.h>
int y, w, ans_z, ans_m;
int main() {
  std::cin >> y >> w;
  if (y == 1 && w == 1) {
    std::cout << 1 << '/' << 1 << std::endl;
    return 0;
  }
  if (y > w) {
    ans_z = 6 - y + 1;
    ans_m = 6;
    if (ans_z % 2 == 0 && ans_m % 2 == 0) {
      ans_z /= 2;
      ans_m /= 2;
    } else if (ans_z % 3 == 0 && ans_m % 3 == 0) {
      ans_z /= 3;
      ans_m /= 3;
    }
    std::cout << ans_z << '/' << ans_m << std::endl;
  } else if (y < w) {
    ans_z = 6 - w + 1;
    ans_m = 6;
    if (ans_z % 2 == 0 && ans_m % 2 == 0) {
      ans_z /= 2;
      ans_m /= 2;
    } else if (ans_z % 3 == 0 && ans_m % 3 == 0) {
      ans_z /= 3;
      ans_m /= 3;
    }
    std::cout << ans_z << '/' << ans_m << std::endl;
  } else {
    ans_z = 6 - y + 1;
    ans_m = 6;
    if (ans_z % 2 == 0 && ans_m % 2 == 0) {
      ans_z /= 2;
      ans_m /= 2;
    } else if (ans_z % 3 == 0 && ans_m % 3 == 0) {
      ans_z /= 3;
      ans_m /= 3;
    }
    std::cout << ans_z << '/' << ans_m << std::endl;
  }
  return 0;
}
