#include <iostream> #include <string> using namespace std; int main() { float a; cin >> a; int b = int(a); cout << b << endl; cout << a - b; }