import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from math import gcd N,*Z = map(int,read().split()) a,b = Z[0], Z[-1] g = gcd(a, b) print('{}/{}'.format(b//g, a//g))