#include<iostream>
#include<sstream>
#include<string>
using namespace std;
template<class out_type,class in_value>
out_type convert(const in_value & t)
{
stringstream stream;
stream<<t;//向流中傳值
out_type result;//這裡存儲轉換結果
stream>>result;//向result中寫入值
return result;
}
int main()
{
string s;
while(cin>>s)
{
double valdou=convert<double>(s);
int valint=convert<int>(s);
cout<<valdou<<endl;
cout<<valint<<endl;
}
return 0;
}