#include #include using namespace std; template T bPM(T z,T n, T mod){ T ans = 1; while(n != 0){ if(n%2){ ans*=z; if(mod)ans%=mod; } n >>= 1; z*=z; if(mod)z%=mod; } return ans; } int main(){ long long a,b;cin>>a>>b; cout << fixed << setprecision(13) << (double)bPM(41LL,a,0LL)*bPM(49LL,b,0LL)/(bPM(6LL,(a+b),0LL)) << endl; }