import java.util.*; class Ideone{ public static void main (String[] args) throws java.lang.Exception{ Scanner koko = new Scanner(System.in); int n = koko.nextInt(); int[] s = new int[n]; for(int i=0; i