import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int arr[]=new int[n];
for(int i=0;i<n;i++){
arr[i]=sc.nextInt();
}
boolean isIncreasing=true;
boolean idDecreasing=true;
for(int i=0;i<n;i++){
if(arr[i]>arr[i+1]){
isIncreasing=false;
}
if(arr[i]<arr[i+1]){
idDecreasing=false;
}
}
if(isIncreasing){
System.out.print("ture");
}
else if(idDecreasing){
System.out.print("false");
}
}
}
i not understand the error in my code help please correct it