#include<iostream> #include<cstdio> using namespace std; int main(){ double a; cin >> a; int n = (a+0.5)/1; int m = (a-0.5)/1; cout << m << endl; cout << n; } /*输出两行,第一行表示a往下取整,第二行表示a往上取整*/