n = int(input()) l = input().split() t = 0 for i in n: t = t + int(l[1]) print(t)