Олимпиадный тренинг

Задача 38796. Competitions


There are n athletes competing in the hammer throw. Each of them made m throws. The winner is determined by the best result. Determine the number of contestants who shared first place, that is, determine the number of rows in the array that contain the highest value.

Input
The program receives as input two numbers n and m, which are the number of rows and columns in the array. Next, the input stream contains n lines of m numbers each, which are elements of the array.

Imprint
The program should output  one number - the number of winners of the competition.

 Examples
# Input Output
1 3 3
3 1 2
1 3 4
3 3 3
1