n = gets.to_i a = gets.split.map(&:to_i) a.sort! b = 0 c = 0 (n-1).downto(0) do |i| if b <= c b += a[i] else c += a[i] end end puts b == c ? "possible" : "impossible"