#include <iostream> #include <cmath> using namespace std; int main(){ double n; cin>>n; cout<<floor(n)<<endl<<ceil(n); }