#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int s = max(n, m);
  int ans = 7 - s;
  if (ans == 1)
    cout << "1/6";
  else if (ans == 2)
    puts("1/3");
  else if (ans == 3)
    cout << "1/2";
  else if (ans == 4)
    cout << "2/3";
  else if (ans == 5)
    cout << "5/6";
  else if (ans == 6)
    cout << "1/1";
  else
    puts("0/1");
  return 0;
}
