#include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
while (cin >> str)
{
bool sign = str[0] == '-';
if (sign) str = str.substr(1);
string A = str.substr(0, 1);
string B = str.substr(2);
int *arr = new int[100]{ 0 };
for (int i = 0; i < B.length(); i++)
{
arr[i] = B[i] - '0';
}
if (arr[2] >= 5)
{
arr[1]++;
if (arr[1] == 10)
{
arr[1] = 0;
arr[0]++;
}
if (arr[0] == 10)
{
arr[0] = 0;
A[0] += 1;
}
}
string out = A + "." + to_string(arr[0]) + to_string(arr[1]);
if (sign && out != "0.00") cout << "-";
cout << out << endl;
}
return 0;
}