import math
h = float(input('h = '))
a = (3*h)/math.sqrt(6)
A = math.sqrt(3)*a**2
V = (math.sqrt(2) * a**3)/12
print('A = ', A)
print('V = ', V)

