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

public class Main {

	public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}

} Main public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} main {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} KagamiMochi solver = new KagamiMochi(); solver new KagamiMochi() solver.readInput() solver.readInput solver solver.solve() solver.solve solver solver.writeOutput() solver.writeOutput solver String[] args args static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	} KagamiMochi private int n; n private int[] d; d private Scanner scanner; scanner private int output; output public KagamiMochi() {
			scanner = new Scanner(System.in);
		} KagamiMochi {
			scanner = new Scanner(System.in);
		} scanner = new Scanner(System.in) scanner new Scanner(System.in) public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		} readInput {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		} n = scanner.nextInt() n scanner.nextInt() scanner.nextInt scanner d = new int[n] d new int[n] n for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				d[i] = scanner.nextInt();
			} {
				d[i] = scanner.nextInt();
			} d[i] = scanner.nextInt() d[i] d i scanner.nextInt() scanner.nextInt scanner public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		} solve {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		} Arrays.sort(d) Arrays.sort Arrays d int t=0; t 0 for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			} int i d {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			} {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			} if(t == i) {
					continue;
				} t == i t i {
					continue;
				} continue; t = i t i output++ output public void writeOutput() {
			System.out.println(output);
		} writeOutput {
			System.out.println(output);
		} System.out.println(output) System.out.println System.out System System.out output public class Main {

	public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}

} public class Main {

	public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private int[] d;

		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
		}
		public void readInput() {
			n = scanner.nextInt();
			d = new int[n];
			for(int i=0; i<n; i++) {
				d[i] = scanner.nextInt();
			}
		}
		public void solve() {
			Arrays.sort(d);
			int t=0;
			for(int i :d) {
				if(t == i) {
					continue;
				}
				t = i;
				output++;

			}
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}

}
