using System; using System.Linq; namespace OmoriTenbin { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] P = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); string R = MainProcess(N, P); Console.WriteLine(R); } private static string MainProcess(int N, int[] P) { const string imp = "impossible"; const string pos = "possible"; int sum = 0; foreach(int p in P) sum += p; if (sum % 2 != 0) return imp; int hlf = sum / 2; int max = P.Max(); if (max > hlf) return imp; if (max == hlf) return pos; Array.Sort(P); for (int i = 0;i < N ; i++) { sum = 0; for (int j = i; j < N; j++) { sum += P[j]; if (sum == hlf) return pos; } } return imp; } } }