<?php
$n=intval(trim(fgets(STDIN)));
$a=fgets(STDIN);
$row = explode(" ", $a);
$counter = 0;
for($i=0;$i<$n;$i++){
  if($i=0 or $highest <= $row[$i]){
    $highest = $row[$i];
    $counter++;
  }else{
  }
}