#include<bits/stdc++.h> using namespace std; int main(){ double x; if(x>0)cout<<x-x%1.0; else if(x<0)cout<<x-x%1.0+1.0; else cout<<0; return 0; }