6 6
 1 4
 4 4
 3 3
 6 4
 6 3
 5 4
 5 6
 3 4
 1 3
 3 2
 5 5
 1 1
 2 1
 3 1
 3 5
 1 6
 6 5
 2 3
 4 3
 2 2
 3 6
 1 2
 6 1
 2 5
 4 5
 1 5
 6 2
 4 6
 5 1
 4 1
 5 2
 2 4
 2 6
 5 3

1/6
 1/2
 1/2
 2/3
 1/6
 1/6
 1/3
 1/6
 1/2
 2/3
 2/3
 1/3
 1/1
 5/6
 2/3
 1/3
 1/6
 1/6
 2/3
 1/2
 5/6
 1/6
 5/6
 1/6
 1/3
 1/3
 1/3
 1/6
 1/6
 1/3
 1/2
 1/3
 1/2
 1/6
 1/3

#include <bits/stdc++.h>
const int MOD = 1e9 + 7;
using namespace std;
bool sortbysec(const pair<long long int, long long int> &a,
               const pair<long long int, long long int> &b) {
  return (a.second < b.second);
}
void solve() {
  long long int w, t;
  cin >> w >> t;
  long long int n = 0;
  for (long long int i = 1; i <= 6; i++)
    if (i >= w && i >= t) n++;
  long long int b = 6;
  for (long long int i = 2; i <= 6; i++)
    if (n % i == 0 && b % i == 0) {
      n = n / i;
      b = b / i;
      break;
    }
  std::cout << n << "/" << b << std::endl;
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  { solve(); }
  cerr << "Timpe elapsed :" << clock() * 1000.0 / CLOCKS_PER_SEC << " mps\n";
  return 0;
}
