#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string arr[6] = {"1/6", "1/3", "1/2", "2/3", "5/6", "1/1"};
  int c = max(a, b);
  int y = (6 - (c - 1));
  cout << arr[y - 1];
}
