#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a, b;
  cin >> a >> b;
  string prawdopodobienstwo[7] = {"0/0", "1/1", "5/6", "2/3",
                                  "1/2", "1/3", "1/6"};
  cout << prawdopodobienstwo[max(a, b)];
}
