import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc Integer[] mochiArr = new Integer[num]; mochiArr new Integer[num] num for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            mochiArr[i] = sc.nextInt();
        } {
            mochiArr[i] = sc.nextInt();
        } mochiArr[i] = sc.nextInt() mochiArr[i] mochiArr i sc.nextInt() sc.nextInt sc Arrays.sort(mochiArr, Collections.reverseOrder()) Arrays.sort Arrays mochiArr Collections.reverseOrder() Collections.reverseOrder Collections int count = 1; count 1 for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        } int i = 0; int i = 0; i 0 i < mochiArr.length - 1 i mochiArr.length - 1 mochiArr.length mochiArr mochiArr.length 1 i++ i++ i {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        } {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        } if (mochiArr[i] == mochiArr[i + 1]) continue; mochiArr[i] == mochiArr[i + 1] mochiArr[i] mochiArr i mochiArr[i + 1] mochiArr i + 1 i 1 continue; if (mochiArr[i] > mochiArr[i + 1]) count++; mochiArr[i] > mochiArr[i + 1] mochiArr[i] mochiArr i mochiArr[i + 1] mochiArr i + 1 i 1 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) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Integer[] mochiArr = new Integer[num];

        for (int i = 0; i < num; i++) {
            mochiArr[i] = sc.nextInt();
        }

        Arrays.sort(mochiArr, Collections.reverseOrder());
        int count = 1;
        for (int i = 0; i < mochiArr.length - 1; i++) {
            if (mochiArr[i] == mochiArr[i + 1]) continue;
            if (mochiArr[i] > mochiArr[i + 1]) count++;
        }

        System.out.println(count);
    }
}
