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