<filename>scripts/10430.py<gh_stars>0
A, B, C = map(int, input().split())

print((A+B)%C)
print((A%C + B%C)%C)
print((A*B)%C)
print((A%C * B%C)%C)
<filename>scripts/10430.py<gh_stars>0
A, B, C = map(int, input().split())

print((A+B)%C)
print((A%C + B%C)%C)
print((A*B)%C)
print((A%C * B%C)%C)