{ll x,y,n,k;rd(x,y,n--,k--);Mint a=x,b=y;Combc;wtLn(c.C(n,k)*a+c.C(n,k-1)*b,c.C(2n,n)*(a*a+b*b-2a*b*n/~n));}