N = raw_input() li = raw_input().split() a,b = li[0],li[1] #for i in range(2, N-1): # a,b = b,a + li[i] print b