﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// Utvrdjivanje da li je niz testerast

namespace ConsoleApplication8
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
            {
                a[i] = Convert.ToInt32(Console.ReadLine());
            }
            bool k = true;
            for (int i = 0; i < n - 2 && k; i++)
            {
                if ((a[i] - a[i + 1]) * (a[i + 1] - a[i + 2]) >= 0)
                {
                    k = false;
                }
            }
            int j = 0;
            for (j = 0; j < n - 2 && ((a[j] - a[j + 1]) * (a[j + 1] - a[j + 2]) < 0); j++) ;
            if (k)
            {
                Console.WriteLine("Jeste testerasta");
            }
            else
            {
                Console.WriteLine("Nije testerasta");
            }
            if (j == n-2)
            {
                Console.WriteLine("Jeste testerasta");
            }
            else
            {
                Console.WriteLine("Nije testerasta");
            }
            Console.ReadKey();
        }
    }
}
