S002-AC.cc
303 Bytes
#include <iostream>
using namespace std;
int main()
{
double x;
cin >> x;
cout << (int)x << " ";
if(x - (int)x)
{
cout << (int)x + 1 << " ";
}
else
{
cout << (int)x << " ";
}
if(x - (int)x >= 0.5)
{
cout << (int)x +1 << endl;
}
else
{
cout << (int)x << endl;
}
return 0;
}