#include using namespace std; int main(void){ int n; cin >> n; double r=3.0/4, ans=4; while(n--){ ans*=r; } printf("%.10f\n", ans); return 0; }