#include #include #include using namespace std; int main() { int n; cin >> n; double result = 4. * pow(3. / 4., n); cout << fixed << setprecision(21) << result << endl; return 0; }