!
package com.javarush.task.pro.task05.task0507;
import java.util.Scanner;
/*
Максимальное из N чисел
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] array = new int[n];
int max = -2147483648;
for (int i = 0; i < n; i++) {
array[i] = scanner.nextInt();
if (max<array[i]){
max =array[i];
}
}
System.out.println(max);
}
}