include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
void mul(vector[HTML_REMOVED] &A,int b)
{
int t=0;
for (int i = 0; i < A.size(); i )
{
t+=A[i]*b;
A[i]=t%10;
t/=10;
}
if(t) A.push_back(t);
}
void add(vector[HTML_REMOVED] &A,int k,int b)
{
int t=b;
for (int i = k; i < A.size(); i )
{
t+=A[i];
A[i]=t%10;
t/=10;
}
if(t) A.push_back(t);
}
int main()
{
int n;
string s;
cin >> n>>s;
reverse(s.begin(),s.end());
int dot=s.find(‘.’);
vector[HTML_REMOVED] D;
for(auto c:s)
{
if(c!=’.’)
{
D.push_back(c-‘0’);
}
}
while(n–) mul(D,2);
if(D[dot-1]>=5) add(D,dot,1);
for(int i=D.size()-1;i>=dot;i–)
cout << D[i];
return 0;
}