# 177
# 10

# print(divmod(177, 10))

user = int(input())
user2 = int(input())

a = divmod(user, user2)
print(a[0])
print(a[1])
# for i in a:
    # print(''.join(a[i]))

print(divmod(user,user2))
# print(divmod(user))