#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
long long a,b,c;
int pol = 0;
cin >> a >> b >> c;
for(int i = 0;i < c;++i)
{
if(b*2+((pol*2)/10) > a)
{
if(a%2 == 1)
{
if(pol == 5)
{
b += (a/2)+1;
pol = 0;
}
else
{
b += a/2;
pol = 5;
}
cout << b << '.' << pol;
return 0;
}
else
{
b += a/2;
cout << b << '.' << pol;
return 0;
}
}
else
{
a -= b*2+((pol*2)/10);
b *= 2;
if(pol == 5)
{
b++;
pol = 0;
}
}
}
cout << b << '.' << pol;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCgppbnQgbWFpbigpCnsKCWlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oMCk7Cglsb25nIGxvbmcgYSxiLGM7CglpbnQgcG9sID0gMDsKCWNpbiA+PiBhID4+IGIgPj4gYzsKCWZvcihpbnQgaSA9IDA7aSA8IGM7KytpKQoJewoJCWlmKGIqMisoKHBvbCoyKS8xMCkgPiBhKQoJCXsKCQkJaWYoYSUyID09IDEpCgkJCXsKCQkJCWlmKHBvbCA9PSA1KQoJCQkJewoJCQkJCWIgKz0gKGEvMikrMTsKCQkJCQlwb2wgPSAwOwoJCQkJfQoJCQkJZWxzZQoJCQkJewoJCQkJCWIgKz0gYS8yOwoJCQkJCXBvbCA9IDU7CgkJCQl9CgkJCQljb3V0IDw8IGIgPDwgJy4nIDw8IHBvbDsKCQkJCXJldHVybiAwOwoJCQl9CgkJCWVsc2UKCQkJewoJCQkJYiArPSBhLzI7CgkJCQljb3V0IDw8IGIgPDwgJy4nIDw8IHBvbDsKCQkJCXJldHVybiAwOwoJCQl9CgkJfQoJCWVsc2UKCQl7CgkJCWEgLT0gYioyKygocG9sKjIpLzEwKTsKCQkJYiAqPSAyOwoJCQlpZihwb2wgPT0gNSkKCQkJewoJCQkJYisrOwoJCQkJcG9sID0gMDsKCQkJfQoJCX0KCX0KCWNvdXQgPDwgYiA8PCAnLicgPDwgcG9sOwp9