Moscow Ring Road
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The length of the Moscow Ring Road is 109 kilometers. The motorcyclist Vasya starts from the zero kilometer of the Moscow Ring Road and travels at a constant speed v kilometers per hour. At what kilometer of the Moscow Ring Road he will stop in t hours?
Input
The speed v and time t are given in separate lines. If v > 0, Vasya is moving in positive direction along the road, if v < 0, in negative direction.
Output
Print the kilometer number (integer value from 0 to 108), where Vasya will stop.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 8%