#include <bits/stdc++.h>
using namespace std;
int main(){
int p,c;cin>>p>>c;
printf("%.13f\n", pow(41.0/6, p) * pow(49.0/6, c));
}