#include #include using namespace std; int N; int main() { cin >> N; double res = 4.0 * pow(0.75, N); printf("%.10f\n", res); return 0; }