#include <stdio.h>
float myround(float x);
int main(void)
{
float sc = 0.0;
scanf ("%f",&sc);
float dd = myround (sc);
printf("%f\n", dd);
return 0;
}
float myround(float x)
{
float result = 2.0;
float tmp = 0.0;
if (x > 0)
{
while (1)
{
if (result >= 1.0 || result <= 0.0)
{
tmp++;
result = tmp - x;
}
else
{
if (result <= 0.5)
{
return tmp;
}
else
{
return tmp - 1;
}
}
}
}
else if (x == 0)
{
return x;
}
else
{
return 0 - (myround (-x));
}
return -0.01;
}