'''arithmetic mean
geometric mean
harmonic mean of numbers
root mean square'''
from math import sqrt
a = float(input())
b = float(input())
print((a + b)/2)
print(sqrt(a*b))
print((2 * a * b) / (a + b))
print(sqrt((a**2 + b**2)/2))

