#include using namespace std; int main() { double h, r; cin >> h >> r; cout << fixed << setprecision(10) << -8.245 + 6.807 * h + (2 * M_PI * r) * 7.073 << '\n'; }