#include using namespace std; constexpr long double PI = 3.1415926535897932384626433; int main() { double r,R; cin >> r >> R; double c = (R*R+R*R-4*r*r)/(2*R*R); double t = 2*PI-acos(c); double theta = t*180./PI; double area = PI*((R+r)*(R+r)-(R-r)*(R-r))*theta/360. + PI*r*r; printf("%.10f\n",t); printf("%.10f\n",area); }