# a = []
# c = 0
# f = 1
#
# while f == 1:
#     a.append(int(input()))
#     if sum(a) == 0:
#         for i in a:
#             c += i * i
#         f = 0
# print(c) 

# if __name__ == '__main__':
#     main()
