import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class Main { public static boolean dfs(int deep, int N, int purpose, int current, int use_count, int[] array, int[] partial, boolean[] used){ //System.out.println(deep + " " + purpose + " " + current); if(purpose == current){ return true; }else if(purpose < current){ return false; }else if(deep >= N){ return false; }else if(use_count * 2 > N){ return true; } final int rest_max = partial[N] - partial[deep]; if(current + rest_max < purpose){ return false; } if(!used[deep]){ used[deep] = true; if(dfs(deep + 1, N, purpose, current + array[deep], use_count + 1, array, partial, used)){ return true; } used[deep] = false; } { if(dfs(deep + 1, N, purpose, current, use_count, array, partial, used)){ return true; } } return false; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); int[] arr = new int[N]; for(int i = 0; i < N; i++){ arr[i] = -sc.nextInt(); } Arrays.sort(arr); for(int i = 0; i < N; i++){ arr[i] = -arr[i]; } int[] partial = new int[N + 1]; for(int i = 1; i <= N; i++){ partial[i] += partial[i - 1] + arr[i - 1]; } final int sum = Arrays.stream(arr).sum(); final int purpose = sum / 2; System.out.println((sum % 2) == 0 && dfs(0, N, purpose, 0, 0, arr, partial, new boolean[N]) ? "possible" : "impossible"); } }