using System;
class Program {
public static void Main() {
var h0 = double.Parse(Console.ReadLine());
Console.WriteLine(h0*(1-Math.Pow(0.5, 4)) / (1-0.5) + h0);
Console.WriteLine(h0 * Math.Pow(0.5, 5));
}
}

using System;
class Program {
public static void Main() {
var h0 = double.Parse(Console.ReadLine());
Console.WriteLine(h0*(1-Math.Pow(0.5, 4)) / (1-0.5) + h0);
Console.WriteLine(h0 * Math.Pow(0.5, 5));
}
}