func main() var n : int var x : int var total : int var existed: bool do n :: cui@input().toInt(&existed) do total :: 0 for cnt(0, n-1) do x :: cui@input().toInt(&existed) do total :: total + x end for do cui@print(total.toStr()) end func