1043: 最大值
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n,maxn,x;n=cin.nextInt();maxn=cin.nextInt();for(int i=2;i<=n;i++){
x=cin.nextInt();maxn=Math.max(x,maxn);}System.out.printf("%d",maxn);}
}