#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; #define REP(i,n) for(int i=0;i<(n);i++) #define ALL(v) v.begin(),v.end() constexpr ll MOD=1000000007; constexpr ll INF=2e18; int main(){ double h, r; cin >> h >> r; double ans=-8.245+6.807*h+7.073*r*2.0*3.141592653; printf("%.10f\n",ans); return 0; }