You are given three numbers A, B, C. Write a program that computes the following four values in order.
(A + B) % C((A % C) + (B % C)) % C(A × B) % C((A % C) × (B % C)) % CHere % is the remainder operator, so x % y is the remainder of x divided by y.
The first line contains A, B, C in that order, separated by spaces. (2≤A,B,C≤10000)
Print the four values on four lines, one per line. Print (A + B) % C on the first line, ((A % C) + (B % C)) % C on the second line, (A × B) % C on the third line, and ((A % C) × (B % C)) % C on the fourth line.