n, d = map(int, input().split()) while not (n == d == 0): print(f"{n // d} {n % d} / {d}") n, d = map(int, input().split())