# a, b = input().split('/')
# a, b = int(a), int(b)
#
#
# def calc(a, b):
#     while b > 0:
#         q = a // b
#         c = b
#         b = a - b * q
#         a = c
#         yield str(q)
#
# print(' '.join(list(calc(a, b)))) 

# if __name__ == '__main__':
#     main()
