function Main(input) {
  var input = input.split("\n");
  input.shift();
  
  var count = 0;
  for (var i=0; i<input.length; i++) {
    if (input[i] == -1) {
      continue;
    }
    for (var j=input.length; j>i; j--) {
      if (input[i] < input[j]) {
        input[j] = -1;
      }
    }
    count++;
  }
  console.log('%d', count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));