4 lines
142 B
Python
4 lines
142 B
Python
str = input()
|
|
A,B,C = tuple([int(i) for i in str.split(" ")])
|
|
print("{}\n{}\n{}\n{}".format((A+B)%C,((A%C)+(B%C))%C,(A*B)%C,((A%C)*(B%C))%C))
|