Financial pyramid
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
On Monday, Tolya borrowed candies from Seryozha and ate it with pleasure. On Tuesday, he borrowed twice as much candies, after which he paid off half of the debt, and happily ate the rest of the candies again. Every next day he borrowed twice as much candy as the previous day, paying off half of the debt, and eating the rest of the candies.
How many candies will Tolya eat with pleasure on the -th day? What will be his debt at the end of the -th day?
Input
One integer .
Output
Print two numbers — and .
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 31%