include
using namespace std;
int main(){
int H; double s; double h; while(cin>>H){ s=H; h=H/2.0;//反弹高度 for(int i=1;i<5;i++){ s+=2*h; h/=2; } cout<<s<<endl; cout<<h<<endl; } return 0;
}
using namespace std;
int main(){
int H; double s; double h; while(cin>>H){ s=H; h=H/2.0;//反弹高度 for(int i=1;i<5;i++){ s+=2*h; h/=2; } cout<<s<<endl; cout<<h<<endl; } return 0;
}