import std.stdio; import std.conv, std.array, std.algorithm, std.string; import std.math, std.random, std.range, std.datetime; import std.bigint; void main(){ int n = readln.chomp.to!int; int[] ws = readln.chomp.split.map!(to!int).array; ws.sort!("a > b")(); bool[] fs; fs.length = 10009; fs[0] = 1; foreach(w; ws){ foreach_reverse(i; 0 .. 10009){ if(i - w >= 0 && fs[i - w]) fs[i] = 1; } } string ans; int sum = ws.reduce!((a, b) => a + b); if(sum % 2 == 0 && fs[sum / 2]) ans = "possible"; else ans = "impossible"; ans.writeln; }