import java.io.*; class Main{ public static void main(String[] args)throws IOException{ SimpleScanner sc = new SimpleScanner(System.in); int N = sc.nextInt(); long answer = 0; while(N-->0){ answer += sc.nextLong(); } System.out.println(answer); } } /*//////////////////////////////////////////////// * My Scanner * @auther viral *///////////////////////////////////////////////// class SimpleScanner{ final private int buff_size = 1<<12; private InputStream is; private byte[] buff; private int point,length; public SimpleScanner(InputStream is){ this.is = is; buff = new byte[buff_size]; point = length = 0; } private void reload()throws IOException{ do{ length = is.read(buff,point = 0,buff_size); }while(length==-1); } private byte read()throws IOException{ if(point==length)reload(); return buff[point++]; } public int nextInt()throws IOException{ int ans = 0; byte c = read(); while(c<=' ')c = read(); boolean negate = c == '-'; if(c=='-')c = read(); while('0'<=c&&c<='9'){ ans = ans*10+c-'0'; c = read(); } return negate ? -ans : ans; } public long nextLong()throws IOException{ long ans = 0; byte c = read(); while(c<=' ')c = read(); boolean negate = c == '-'; if(c=='-')c = read(); while('0'<=c&&c<='9'){ ans = ans*10+c-'0'; c = read(); } return negate ? -ans : ans; } }