#include #include using namespace std; int main() { double H, R; cin >> H >> R; cout << -8.245 + 6.807 * H + 7.073 * R * acos(-1.0) * 2 << endl; return 0; }