#include #include using namespace std; #define PI (2*acos(0.0)) int main(){ double r, R; cin >> r >> R; double t = 2*PI-2*fabs(atan2(r, sqrt(R*R-r*r))); cout << t << endl << r*(2*R*t+PI*r) << endl; return 0; }