n = int(input()) w = list(map(int,input().split())) left = w[0] right = 0 for i in range(1,n): if left >= right: left += w[i] else: right += w[i] if left == right: print('possible') else: print('impossible')