import java.util.Scanner;
public class Main {
//假设一个球从任意高度自由落下,每次落地后反跳回原高度的一半; 再落下, 求它在第5次落地时,共经历多少米?第5次反弹多高?
//小球反弹高度
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num =sc.nextInt();
sc.close();
int time = 5;
double hihcount = getJourney(num, time);
double hihresult = getTenthHigh(num, time);
System.out.println(hihcount);
System.out.println(hihresult);
}
public static double getTenthHigh(int high,int num){
if(num==1){
return (double)high/2;
}else{
return high/Math.pow(2, num);
}
}
public static double getJourney(int high,int num){
if(num == 1) return high;
double count = high;
for (int i = 1; i < num; i++) {
count = count + 2* getTenthHigh(high, i);
}
return count;
}
}