#include
using namespace std;
int main() {
int n, j,i;
int count1 = 0, count2 = 0;
cin>>n;
int S[n];
S[n+1] = 0;
for(i=0; i<n; i++)
{
cin>>S[i];
}
for(i = 0; i<n; i++)
{
j = i+1;
if(S[i]>S[j]){
count1 = count1+1;}
else if(S[i]<S[j]){
count2 = count2 +1;}
}
if(count1 == n or count2 ==n )
{
cout<<"true";
}
else
{
cout<<"false";
}
return 0;
}
/*Where is the problem in my code */
/*when i run the series
10
9
8
7
6
*/
/it gives me the false as a output/