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