#include <bits/stdc++.h>
using namespace std;
long long arr[1000000];
long long arr1[1000000];
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, a = 0, b = 0, c = 0, d = 0;
  string s[6] = {"1/6", "1/3", "1/2", "2/3", "5/6", "1/1"};
  cin >> n >> a;
  c = max(n, a);
  cout << s[6 - c];
  return 0;
}
