#include using namespace std; int main(){ cout << fixed << setprecision(20); int P, C; cin >> P >> C; cout << pow((double)(2 + 3 + 5 + 7 + 11 + 13) / 6, P) * pow((double)(4 + 6 + 8 + 9 + 10 + 12) / 6, C) << endl; }