#include using namespace std; int main() { int c[] = {4,6,8,9,10,12}; int p[] = {2,3,5,7,11,13}; long double nc = 0, np = 0; for (int i = 0; i < 6; i++) nc += 1.0 * c[i] / 6, np += 1.0 * p[i] / 6; int P, C; cin >> P >> C; cout << fixed << setprecision(11) << pow(np, P) * pow(nc, C) << endl; }