#include #include using namespace std; int main() { int n, max, num; while(cin >> n) { max = -2147483648; for(int i = 0; i < n; i++) { cin >> num; if(num > max) { max = num; } } cout << max << endl; } return 0; }