n = int(input()) A = list(map(int, input().split())) N = max(A)*n+1 dp = 1 limit = (1<>i)&1: ans ^= i print(ans)