_ = gets a = gets.chomp.split.map(&:to_i).reverse x = a.shift y = 0 a.each do |i| if x < y x += i else y += i end end puts x == y ? "possible" : "impossible"