import sys nums = list(map(int, sys.stdin.readline().split())) sum=0 for num in nums: sum+=(num**2) #제곱은 * print(sum%10)