import java.util.Arrays;
import java.util.Scanner;
// ABC 085
public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    }
} 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 mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    }
} Main public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    } main {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    } Scanner sc= new Scanner(System.in); sc new Scanner(System.in) int mochi = sc.nextInt(); mochi sc.nextInt() sc.nextInt sc int[] size = new  int[mochi]; size new  int[mochi] mochi for(int i = 0; i < mochi; i++) size[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < mochi i mochi i++ i++ i size[i] = sc.nextInt(); size[i] = sc.nextInt() size[i] size i sc.nextInt() sc.nextInt sc Arrays.sort(size) Arrays.sort Arrays size int dan = 0; dan 0 int kagamimochi = 0; kagamimochi 0 for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        } int i = 0; int i = 0; i 0 i < mochi i mochi i++ i++ i {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        } {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        } if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            } kagamimochi < size[i] kagamimochi size[i] size i {
                dan++;
                kagamimochi = size[i];
            } dan++ dan kagamimochi = size[i] kagamimochi size[i] size i System.out.println(dan) System.out.println System.out System System.out dan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;
// ABC 085
public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int mochi = sc.nextInt();
        int[] size = new  int[mochi];
        for(int i = 0; i < mochi; i++) size[i] = sc.nextInt();
        Arrays.sort(size);
        int dan = 0;
        int kagamimochi = 0;
        for(int i = 0; i < mochi; i++) {
            if(kagamimochi < size[i]) {
                dan++;
                kagamimochi = size[i];
            }
        }
        System.out.println(dan);
    }
}
