{double s,r,t;rd(s,r);t=PI-asin(s/r);wt(2*t,s*(PI*s+4*r*t));}