import java.util.Arrays; import java.util.Scanner; public class N406 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] x=new int[n]; int dif=-1; String ans="NO"; for(int i=0;i