from cmath import *
def golf(h,w):e=sqrt(1-w*w/h/h);return(round(w*w*h*pi/6,2),round(pi*w*w*((1+h/w/e*asin(e))/2).real if h!=w else pi*h*h,2))