using System;
public class Program
{
public static void Main()
Console.WriteLine("n= ");
int n= int.Parse(Console.ReadLine());
int max = int.MinValue;
for (int i = 0; i<n; i++)
int x = int.Parse(Console.ReadLine());
if (x > max)
max = x;
}
Console.WriteLine("max = "+max);