a = [float(i) for i in input().split()] print(sum(i ** 2 for i in a))