Area and volume of the pyramid#948

Area and volume of the pyramid

1 secondo
128 megabyte
Molto facile

Given a regular quadrilateral pyramid with base side and lateral edge , determine the total surface area and volume of the pyramid.

Input

The single line contains two integers separated by a space: the base side and the lateral edge . The input values do not exceed .

Output

Output the required total surface area and volume, separated by a space. The answer must be given to three decimal places.

Esempi

Esempio 1

Loading
Loading