import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        double n = Double.valueOf(scan.nextLine().trim());
        double total = 0.0;
        for (int i = 1; i <= 5; i++) {
            total += n;
            n /= 2;
            total += n;
        }
        System.out.println(total - n);
        System.out.println(n);
    }
}