#include <stdio.h> int main() { double h; scanf("%lf", &h); double s = -h; for (int i = 1;i <= 5; i ++ ) { s += 2 * h; h = h / 2; } printf("%g\n%g", s, h); return 0; }