import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    }
} import java.io.BufferedReader; BufferedReader 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 Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    }
} Main public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    } main {
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    } BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in)); stdR new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(stdR.readLine()); N Integer.parseInt(stdR.readLine()) Integer.parseInt Integer stdR.readLine() stdR.readLine stdR int[] a = new int[N]; a new int[N] N for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            a[i] = Integer.parseInt(stdR.readLine());
        } {
            a[i] = Integer.parseInt(stdR.readLine());
        } a[i] = Integer.parseInt(stdR.readLine()) a[i] a i Integer.parseInt(stdR.readLine()) Integer.parseInt Integer stdR.readLine() stdR.readLine stdR Arrays.sort(a) Arrays.sort Arrays a int count = 0; count 0 int num = 0; num 0 for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            if(num != a[i])count++;
            num = a[i];
        } {
            if(num != a[i])count++;
            num = a[i];
        } if(num != a[i])count++; num != a[i] num a[i] a i count++ count num = a[i] num a[i] a i 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[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine());
        int[] a = new int[N];
        for(int i = 0 ; i < N ; i++) {
            a[i] = Integer.parseInt(stdR.readLine());
        }
        Arrays.sort(a);
        int count = 0;
        int num = 0;
        for(int i = 0 ; i < N ; i++) {
            if(num != a[i])count++;
            num = a[i];
        }
        System.out.println(count);
    }
}
