import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] d = new int[N]; d new int[N] N for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			d[i] = Integer.parseInt(sc.next());
		} {
			d[i] = Integer.parseInt(sc.next());
		} d[i] = Integer.parseInt(sc.next()) d[i] d i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc Arrays.sort(d) Arrays.sort Arrays d int count = 1; count 1 int bottom = d[N - 1]; bottom d[N - 1] d N - 1 N 1 for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		} int i = N - 2; int i = N - 2; i N - 2 N 2 i >= 0 i 0 i-- i-- i {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		} {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		} if(d[i] < bottom) {
				bottom = d[i];
				count++;
			} d[i] < bottom d[i] d i bottom {
				bottom = d[i];
				count++;
			} bottom = d[i] bottom d[i] d i count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		Arrays.sort(d);
		int count = 1;
		int bottom = d[N - 1];
		for(int i = N - 2; i >= 0; i--) {
			if(d[i] < bottom) {
				bottom = d[i];
				count++;
			}
		}
		System.out.println(count);
	}
}