import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	} main {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	} int i; i 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 HashMap<Integer,Integer> mochi = new HashMap<>(); mochi new HashMap<>() for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		} {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		} int d = Integer.parseInt(sc.next()); d Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Integer m = mochi.get(d); m mochi.get(d) mochi.get mochi d if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			} m == null m null {
				mochi.put(d, 1);
			} mochi.put(d, 1) mochi.put mochi d 1 {
				mochi.put(d, m+1);
			} mochi.put(d, m+1) mochi.put mochi d m+1 m 1 sc.close() sc.close sc int ans = mochi.size(); ans mochi.size() mochi.size mochi System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		HashMap<Integer,Integer> mochi = new HashMap<>(); 
		for(i=0;i<n;i++) {
			int d = Integer.parseInt(sc.next());
			Integer m = mochi.get(d);
			if(m == null) {
				mochi.put(d, 1);
			} else {
				mochi.put(d, m+1);
			}
		}
		sc.close();
		int ans = mochi.size();
		System.out.println(ans);
	}
}
