# Enter your code here. Read input from STDIN. Print output to STDOUT

A = int(raw_input())
B = int (raw_input())

print (A//B)
print (A%B)
print(divmod(A,B))

8e0106a78e50ad38dc4dd6c9a1cd350f0c82af77
<mask token>

<mask token>
print(A // B)
print(A % B)
print(divmod(A, B))

A = int(raw_input())
B = int(raw_input())
print(A // B)
print(A % B)
print(divmod(A, B))

# Enter your code here. Read input from STDIN. Print output to STDOUT

A = int(raw_input())
B = int (raw_input())

print (A//B)
print (A%B)
print(divmod(A,B))
