import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int initHigh = sc.nextInt();
double fiveHigh = initHigh / (Math.pow(2, 5));
double totalHigh = initHigh;
for (int i = 1; i < 5; i++) {
totalHigh += 2 * (initHigh / (Math.pow(2, i)));
}
System.out.println(totalHigh);
System.out.println(fiveHigh);
}
}