CSCI 226 Summer 2020 - Week 7


2020-07-13 07:00 AKDT

CSCI 226 Summer 2020 - Week 7


2020-07-20 07:00 AKDT
The end is near!
Contest is over.
Not yet started.
Contest is starting in -378 days 5:43:11

Time elapsed


Time remaining


Problem C
Roaming Romans

The English word “mile” derives from the Latin “mille passus”, meaning “a thousand paces”. A Roman mile was the distance a soldier would walk in $1\, 000$ paces (a pace being two steps, one with each foot).

Over time, the actual distance referred to as a “mile” has changed. The modern English mile is $5\, 280$ (modern) feet. The Roman mile is believed to have been about $4\, 854$ (modern) feet. Therefore a distance of $x$ English miles would correspond to $1\, 000 \cdot \frac{5\, 280}{4\, 854}$ Roman paces.

Write a program to convert distances in English miles into Roman paces.


Input will consist of a single line containing a single real number $0 \le X \le 1\, 000$ denoting a distance in English miles. The number $X$ has at most $3$ digits of precision after the decimal point.


Print an integer denoting the closest number of Roman paces equivalent to X. Your answer should be rounded to the closest integer (with an exact $.5$ decimal part rounded up).

Sample Input 1 Sample Output 1
Sample Input 2 Sample Output 2