using System; namespace OmoriToTenbin2 { class Program { static int N; static int[] weightCount; static int[] remainSum; static void Main(string[] args) { N = int.Parse(Console.ReadLine()); string[] w = Console.ReadLine().Split(' '); weightCount = new int[101]; remainSum = new int[101]; for(int i = 0; i < N; i++) { int j = int.Parse(w[i]); weightCount[j] = ~weightCount[j] & 0x01; } //for (int i = 1; i <= 100; i++) // Console.WriteLine(weightCount[i]); remainSum[1] = weightCount[1]; for(int i=2; i <= 100; i++) { remainSum[i] = remainSum[i - 1] + i * weightCount[i]; } if(Search(0, 100)) { Console.WriteLine("possible"); } else { Console.WriteLine("impossible"); } } static bool Search(int weight, int w) { if(w == 1) { if(weightCount[1] == 0) { if (weight == 0) { return true; } } else { if(weight+1 == 0 || weight -1 == 0) { return true; } } return false; } if(Math.Abs(weight) > remainSum[w]) { return false; } if(weightCount[w] == 0) { return Search(weight, w - 1); } if(Search(weight-w, w-1)) { return true; } if (Search(weight + w, w - 1)) { return true; } return false; } } }