|Author:||Антон Карабанов||Time limit:||1 sec|
|Input file:||Standard input||Memory limit:||512 Mb|
|Output file:||Standard output|
Artem made up three integers and told Eugene the average value of every pair of them. Eugene easily restored original integers. Now you try to do the same!
Input contains three numbers: x, y and z. Numbers are either integers or have fractional part of exactly 0.5. At least one number is not zero.
Output original integers in non-descending order (input data are such that the original numbers will turn out to be integer).
− 108 ≤ x, y, z ≤ 108
In the sample x = 1.5, y = 2 and z = 3.5. These are pairwise averages for a = 0, b = 3 and c = 4. Indeed:
a + b2 = 0 + 32 = 1.5 = x;
a + c2 = 0 + 42 = 2 = y;
b + c2 = 3 + 42 = 3.5 = z.
|No.||Standard input||Standard output|