include<bits/stdc++.h>
using namespace std;
int main()
{
double a;
int b,c;
cin>>a;
b=floor (a);
c=ceil (a);
cout<<b<<endl;
cout<<c<<endl;
return 0;
}
using namespace std;
int main()
{
double a;
int b,c;
cin>>a;
b=floor (a);
c=ceil (a);
cout<<b<<endl;
cout<<c<<endl;
return 0;
}