text: #!/bin/python3
  
  import os
  import sys
  import array as a
  
  #
  # Complete the simpleArraySum function below.
  #
  def simpleArraySum(ar):
      #
      # Write your code here.
      #
      sum=0
      for i in range(ar.__len__()):
          sum=sum+ar[i]
      return sum
  
  if __name__ == '__main__':
      fptr = open(os.environ['OUTPUT_PATH'], 'w')
  
      ar_count = int(input())
  
      ar = list(map(int, input().rstrip().split()))
  
      result = simpleArraySum(ar)
  
      fptr.write(str(result) + '\n')
  
      fptr.close()
  