Skip to main content

~/algor $ cat contests/round-7/Y

Y. Uniformly accelerated motion

Problem Y ICPC rules 1000 ms 64 MB

A body moves in a straight line with constant acceleration: initial speed m/s, acceleration m/s². Find its speed after seconds and the distance covered in that time:

Speed versus time graph: the speed grows evenly from v0 to v; the area under the graph is the distance s

Input

One line with three integers: , and .

Output

One line with two numbers: — an integer, — with exactly 1 digit after the decimal point (for example, 32.0).

Note



Examples

Input #1
2 3 4
Output #1
14 32.0
Input #2
0 1 3
Output #2
3 4.5

Sign in to submit a solution

Signing up is free and takes a minute.