#include<iostream>

// your function(s) here

int main() {
    long long x, y, g;
    std::cin >> x >> y;
    g = gcd(x, y);
    std::cout << x / g << '/' << y / g << "\n";
}