#include int main() { double ans = 0; int a[6] = { 2, 3, 5, 7, 11, 13 }; int b[6] = { 4, 6, 8, 9, 10, 12 }; int P, C; double ea = 0; double eb = 0; std::cin >> P >> C; for(int i = 0; i < 6; ++i) { ea += a[i]; eb += b[i]; } ea /= 6; eb /= 6; ans = pow(ea, P) * pow(eb, C); printf("%.12lf\n", ans); return 0; }