import java.util.*;
public class maximum {
public static void main (String [] args){
	Scanner s = new Scanner (System.in);
	System.out.println("How many values?");	
	int numberofvalues = s.nextInt();
	
	double themax=s.nextDouble();
	
	for (int i=1; i < numberofvalues; i++){
themax = Math.max(themax, s.nextDouble());
}
	
	System.out.println(themax);
}
}
