function main(input) {
  input = input.split("\n");
  const N = input[1].split(" ");
  let problems = [];
  let problemCount = 0

  for(problemCount = 0; problemCount < N.length; problemCount++){
    problems[problemCount] = parseInt(N[problemCount], 10);
    
  }
  
  function compareFunc(a, b) {
    return a - b;
  }

console.log(problems[problemCount]);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
