n,*w=$<.read.split.map &:to_i f=->x{x.reduce :+} s=f[w] puts (1..n).any?{|i| w.combination(i).to_a.uniqany?{|a| s==2*f[a] } }?:possible:'impossible'