#include #include #include #include #include typedef uint64_t ull; typedef int64_t ll; #ifdef __cplusplus #include using std::vector; using std::pair; #include using std::set; #include using std::map; typedef pair P; #endif static const ull MOD = 1000000007LL; ll n, k, m, q; ll h, w, r; char s[2019100]; ll a[201910], b[201910], c[201910]; ll qx[201910], qy[201910]; ll smin (ll a, ll b) { return (a < b) ? a : b; } ll smax (ll a, ll b) { return (a > b) ? a : b; } typedef struct { ll a; ll b; } hwll; int cmp (const void *left, const void *right) { ll l = *(ll*)left, r = *(ll*)right; if (l < r) return -1; if (l > r) return +1; return 0; } ll frac[5050505], invf[5050505]; ll bpow (ll x, ll y) { if (y == 0) return 1; return bpow(x * x % MOD, y / 2) * ((y % 2) ? x : 1) % MOD; } ll binv (ll x) { return bpow(x, MOD - 2); } ll solve () { ll i, j, ki; ll res = 0; qsort(a, n, sizeof(ll), cmp); for (i = 1; i <= n - 1; i++) { res += a[n - 1 - i / 2]; } return res; } int main(void){ long double h, r; scanf("%Lf%Lf", &h, &r); long double ffc = 3.14159265358979323846264338327950L * 2 * r; long double result = -8.245L + 6.807L * h + 7.073L * ffc; printf("%.15Lf\n", result); // printf("%lld\n", solve()); return 0; }