a=int(input()) b=list(map(int,input().split(" "))) c=0 d=0 for i in range(0,a): if c>=d: d+=b[i] else: c+=b[i] print("impossible" if d!=c else "possible")