A, B = map(int, input().split())
x = gcd(A, B)
print(A // x, '/', B // x, sep = '')