output_description: If \alpha is uppercase, print `A`; if it is lowercase, print `a`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      α
attempt: n, k = input().split()
  k = int(k)
  # print(n,k)
  p = [int(s) for s in input().split()]
  p.sort()
  # print(p)
  # print(k)
  p2 = p[0:k]
  # print(p2)
  s = sum(p)
  # print(s)
  print(sum(p2))
  
problem_description: Statement
  
  An uppercase or lowercase English letter \alpha will be given as input. If
  \alpha is uppercase, print `A`; if it is lowercase, print `a`.
samples: [{"input": "B", "output": "A\n    \n\n`B` is uppercase, so we should print `A`.\n\n* * *"}, {"input": "a", "output": "a\n    \n\n`a` is lowercase, so we should print `a`."}]