import sys input = sys.stdin.readline N=int(input()) A=list(map(int,input().split())) if N==4: X=[0] print(X[5])