#include<iostream>
using namespace std;
class cylinder {
public:
cylinder(double a, double b);
void vol();
private:
double r, h;
double volume;
};
cylinder::cylinder(double a, double b)
{
r = a;
h = b;
volume = 3.14159 * r * r * h;
}
void cylinder::vol()
{
cout << volume << endl;
}
int main()
{
double x, y;
cin >> x >> y;
cylinder A(x, y);
A.vol();
return 0;
}