#include <iostream>
using namespace std;
float Float(float x) {
return 2 * x / (.5 * x);
}
void Void(int n) {
float v = n;
while(n) {
v = Float(v);
n >>= 1;
}
cout << v;
}
int main() {
Void(4);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCmZsb2F0IEZsb2F0KGZsb2F0IHgpIHsKICAgIHJldHVybiAyICogeCAvICguNSAqIHgpOwp9CiAgIAp2b2lkIFZvaWQoaW50IG4pIHsKICAgIGZsb2F0IHYgPSBuOwogICAgd2hpbGUobikgewogICAgICAgIHYgPSBGbG9hdCh2KTsKICAgICAgICBuID4+PSAxOwogICAgfQogICAgY291dCA8PCB2Owp9CiAgICAKaW50IG1haW4oKSB7CiAgICBWb2lkKDQpOwogICAgcmV0dXJuIDA7Cn0KCg==