#include <iostream>
using namespace std;

int max( int arr[], int n ) {
    int max = arr[0];
    for (int i = 0; i < n; i++) {
        if (max < arr[i]) {
            max = arr[i];
        }
    }
    return max;
}
int main() {
    int n;
    cout<<"Enter the number of students: ";
    cin >> n;
    int *arr = new int[n];
    cout<<"Enter the grad of each student";
    for(int i=0;i<n;i++){
    	cin>>arr[i];
    }
    cout<<"The highst grad is: "<<max(arr,n);
	return 0;
}