#include using namespace std; int main() { double h,r; cin >> h >> r; cout << -8.245+6.807*h+7.073*2*3.1415926535*r << endl; }