import numpy as np n = int(input()) A = list(map(int,input().split(' ')))