using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            var imp = Console.ReadLine().Split(' ');
            int[] ary = new int[N];
            int H = 0;
            int count = 1;
            for(int i = 0; i < N; i++)
            {
                ary[i] = int.Parse(imp[i]);
            }
            for (int j = 1; j < N; j++)     //j個の旅館
            {
                int[] newone = new int[j];
                Array.Copy(ary, 0, newone, 0, j);
                H = newone.Max();
                Console.WriteLine(H);
                if (H <= ary[j])
                {
                    count += 1;
                }
            }
            Console.WriteLine(count);
            //System.Threading.Thread.Sleep(3000);
        }
    }
    
}
