#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); int p, c; cin >> p >> c; double x = (2 + 3 + 5 + 7 + 11 + 13) / 6.0; double y = (4 + 6 + 8 + 9 + 10 + 12) / 6.0; cout << fixed << setprecision(15) << pow(x, p) * pow(y, c) << endl; return 0; }