1 #!/usr/bin/env python
    2 import sys
    3 for line in sys.stdin.readlines():
    4     a, b = map(int, line.split())
    5     if b == 0:
    6         break
    7     print '{0[0]} {0[1]} / {1}'.format(divmod(a, b), b)