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