#include #define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++) const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; typedef vector vi; typedef vector vll; typedef pair pii; int a[] = {2,3,5,7,11,13}; int b[] = {4,6,8,9,10,12}; int main() { cin.tie(0); ios::sync_with_stdio(false); int P, C; cin >> P >> C; double ans = 1; for (int i = 0; i < P; i++) ans *= 41./6; for (int i = 0; i < C; i++) ans *= 49./6; printf("%.15lf\n", ans); return 0; }