import sequtils, strutils let n = stdin.readLine().parseInt() let an = newSeqWith(n, stdin.readLine).map(parseInt) echo an.foldl(a + b)