#include<bits/stdc++.h> using namespace std; int main() { //freopen(".in", "r", stdin); //freopen(".out", "w", stdout); ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); long double h, ans1 = 0; cin >> h; ans1 += h; for(int i = 1; i <= 10; i ++) { h /= 2; ans1 += h * 2; } cout << ans1 << "\n" << h; return 0; }