import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer n = Integer.valueOf(br.readLine()); n Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br int i; i Integer[] d = new Integer[n]; d new Integer[n] n for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine()); i=0; i=0 i 0 i<n i n i++ i++ i d[i] = Integer.valueOf(br.readLine()); d[i] = Integer.valueOf(br.readLine()) d[i] d i Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Arrays.sort(d) Arrays.sort Arrays d int cnt = 0 cnt 0 temp = 101; temp 101 for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		} i=n-1; i=n-1 i n-1 n 1 i>=0 i 0 i-- i-- i {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		} {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		} if(temp > d[i]) {
				temp = d[i];
				cnt++;
			} temp > d[i] temp d[i] d i {
				temp = d[i];
				cnt++;
			} temp = d[i] temp d[i] d i cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer n = Integer.valueOf(br.readLine());
		int i;
		Integer[] d = new Integer[n];
		for(i=0;i<n;i++) d[i] = Integer.valueOf(br.readLine());
		Arrays.sort(d);
		int cnt = 0,temp = 101;
		for(i=n-1;i>=0;i--) {
			if(temp > d[i]) {
				temp = d[i];
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}