import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int n=scn.nextInt();
int a[]=new int[n];
for(int i=0;i<=n;i++){
a[i]=scn.nextInt();
int max=a[0];
if(a[i]>-1000000000 && a[i]<1000000000)
{
if(a[i]>max)
{
max=a[i];
}
}
System.out.println(max);
}
}
}
the testcases are partially executed where i went wrong there are no errors