n = gets.chomp.to_i weight = gets.split.map(&:to_i) i = weight.inject(:+) if i % n == 0 puts "possible" else puts "impossible" end