#include <iostream>
using namespace std;
int main()
{
int n, max;
cout << "n="; cin >> n;
int sir[n];
cout << "introduceti valorile sirului: " << endl;
for (int i=0; i<n; i++)
cin >> sir[i];
max=sir[0];
for (int i=1; i<n; i++)
if (max<sir[i])
max=sir[i];
cout << endl << "valoarea maxima din sir este " << max << endl;
return 0;
}