#include <bits/stdc++.h>
using namespace std;
int y, w, x;
int main() {
  cin >> y >> w;
  if (y > w)
    x = 7 - y;
  else
    x = 7 - w;
  switch (x) {
    case 1:
      cout << "1/6";
      break;
    case 2:
      cout << "1/3";
      break;
    case 3:
      cout << "1/2";
      break;
    case 4:
      cout << "2/3";
      break;
    case 5:
      cout << "5/6";
      break;
    case 6:
      cout << "1/1";
      break;
  }
}
