#include using namespace std; int main(){ int n; cin >> n; printf("%.10lf\n",4*pow(0.75,n));; return 0; }