#include<bits/stdc++.h> using namespace std; int main() { double h,c=10,g,s; cin>>h; for(int i=1;i<=c;i++) { g=g+h*1.0/pow(2,i-1)+h*1.0/pow(2,i); } s=g-h*1.0/pow(2,10); cout<<s<<endl<<h*1.0/pow(2,10); return 0; }