import java.util.Scanner;
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        in.nextLine(); // 读取完后 需要到下一行 不下一行 后面第一个读取的是换行符
        String[] words = new String[N];
        for(int i =0; i<N ;i++){
            words[i] = in.nextLine();
        }
        HashMap<String,Integer> map = new HashMap<>();

        for(String word: words){
            if(map.containsKey(word)) map.put(word, map.get(word)+1);
            else map.put(word, 1);
        }

        int res = 0;
        for(String word : map.keySet()){
            if((map.get(word)*100)>=N) res++;
        }
        System.out.println(res);
    }

}