#include main(){ int N; scanf("%d",&N); printf("%.9lf\n",4*pow(3./4,N)); }