/**
 * HJ38 求小球落地5次后所经历的路程和第5次反弹的高度
 */
public class HJ038 {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {//多组输入
            String s = sc.nextLine();
            double h = Double.parseDouble(s);//记录总的
            double temp = h / 2;//弹跳多高
            for (int i = 1; i < 5; i++) {
                h += temp * 2;
                temp = temp / 2;
            }
            System.out.println(h);
            System.out.println(temp);
        }
        sc.close();
    }
}