#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x;
cin >> x;
// Tìm số nguyên lớn nhất bé hơn hoặc bằng x
int lower = floor(x);
// Tìm số nguyên nhỏ nhất lớn hơn x
int upper= lower + 1;
cout << lower << " " << upper << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBkb3VibGUgeDsKICAgIGNpbiA+PiB4OwoKICAgIC8vIFTDrG0gc+G7kSBuZ3V5w6puIGzhu5tuIG5o4bqldCBiw6kgaMahbiBob+G6t2MgYuG6sW5nIHgKICAgIGludCBsb3dlciA9IGZsb29yKHgpOwoKICAgIC8vIFTDrG0gc+G7kSBuZ3V5w6puIG5o4buPIG5o4bqldCBs4bubbiBoxqFuIHgKICAgIGludCB1cHBlcj0gbG93ZXIgKyAxOwogICAgCiAgICBjb3V0IDw8IGxvd2VyIDw8ICIgIiA8PCB1cHBlciA8PCBlbmRsOwoKICAgIHJldHVybiAwOwp9Cg==