#include using namespace std; int main(){ int N; scanf("%d",&N); printf("%.15f\n", 4 * pow(0.75, N)); return 0; }