#include <iostream>
#include <vector>
using namespace std;
int find_max(vector<int> &arr){
int max_elem = -INT_MAX;
for(int &elem:arr)
max_elem = max(max_elem,elem);
return max_elem;
}
signed main() {
int n;
cin >> n;
vector<int> a(n);
for(int &i: a)
cin >> i;
cout << "Max elem = " << find_max(a);
#include <iostream>
#include <vector>
using namespace std;
int find_max(vector<int> &arr){
int max_elem = -INT_MAX;
for(int &elem:arr)
max_elem = max(max_elem,elem);
return max_elem;
}
signed main() {
int n;
cin >> n;
vector<int> a(n);
for(int &i: a)
cin >> i;
cout << "Max elem = " << find_max(a);
}