main(){ double a,b; scanf("%lf%lf",&a,&b); printf("%.9f\n",pow(41.0/6,a)*pow(49.0/6,b)); return 0; }