#27684: _CPP


11030067@mail.hpsh.tp.edu.tw (和平110級鄧雨珊)


#include <iostream>
using namespace std;

int main(){
unsigned long long p, max;
int n;
while (cin >> n){
max=0;
while (n--){
cin >> p;
if (p>max){
max=p;
}
}
cout << max <<endl;
}
}