import sys readline = sys.stdin.readline read = sys.stdin.read n,*w = map(int,read().split()) dp = 1 for i in w: dp |= dp<>(sum(w)//2)&1 else "impossible")