#P235. 【例39.2】 球弹跳高度的计算

【例39.2】 球弹跳高度的计算

Description

A ball is dropped from a certain height (integer, in meters). After each bounce, it rebounds to half of its previous height before falling again. Calculate the total distance traveled by the ball when it hits the ground for the 10th time, and how high it bounces on the 10th bounce.

Input Format

A single line containing an integer h (1≤h≤100), representing the initial height of the ball.

Output Format

Output consists of two lines:
Line 1: The total distance traveled by the ball when it hits the ground for the 10th time.
Line 2: The height of the 10th bounce.

Sample

18
53.9297
0.0175781