import java.util.Scanner; class no9008{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int n,i; long a,s=0; n=stdIn.nextInt(); for(i=0;i