import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] d = new int[n]; d new int[n] n for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        } int i=0; int i=0; i 0 i<d.length i d.length d d.length i++ i++ i {
            d[i]=scan.nextInt();
        } {
            d[i]=scan.nextInt();
        } d[i]=scan.nextInt() d[i] d i scan.nextInt() scan.nextInt scan Arrays.sort(d) Arrays.sort Arrays d int tmp = d[0] tmp d[0] d 0 count=1; count 1 for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        } int i=1; int i=1; i 1 i<n i n i++ i++ i {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        } {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        } if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            } tmp!=d[i] tmp d[i] d i {
                tmp=d[i];
                count++;
            } tmp=d[i] tmp 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) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] d = new int[n];
        for(int i=0;i<d.length;i++)
        {
            d[i]=scan.nextInt();
        }
        Arrays.sort(d);
        int tmp = d[0],count=1;
        for(int i=1;i<n;i++)
        {
            if(tmp!=d[i])
            {
                tmp=d[i];
                count++;
            }
        }
        
        System.out.println(count);
    }
}