
from __future__ import  division

a = int(input())
b = int(input())
m = int(input())

print(int(a/b))
print(a%b)
print(divmod(a, b)) # Divmod is in built python function gives you division, and remainder


# PowerMod

print(pow(a,b))
print(pow(a,b,m))

9e4c6530739f7f3e5a64bfdbfaa3ce0e4966d61d
<mask token>

<mask token>
print(int(a / b))
print(a % b)
print(divmod(a, b))
print(pow(a, b))
print(pow(a, b, m))

<mask token>
a = int(input())
b = int(input())
m = int(input())
print(int(a / b))
print(a % b)
print(divmod(a, b))
print(pow(a, b))
print(pow(a, b, m))

from __future__ import division
a = int(input())
b = int(input())
m = int(input())
print(int(a / b))
print(a % b)
print(divmod(a, b))
print(pow(a, b))
print(pow(a, b, m))


from __future__ import  division

a = int(input())
b = int(input())
m = int(input())

print(int(a/b))
print(a%b)
print(divmod(a, b)) # Divmod is in built python function gives you division, and remainder


# PowerMod

print(pow(a,b))
print(pow(a,b,m))
