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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    }
} import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner Integer[] nums = new Integer[N]; nums new Integer[N] N for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            nums[i] = scanner.nextInt();
        } {
            nums[i] = scanner.nextInt();
        } nums[i] = scanner.nextInt() nums[i] nums i scanner.nextInt() scanner.nextInt scanner Arrays.sort(nums, Collections.reverseOrder()) Arrays.sort Arrays nums Collections.reverseOrder() Collections.reverseOrder Collections int current = nums[0]; current nums[0] nums 0 int count = 1; count 1 for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        } {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        } if (current != nums[i]) {
                count++;
                current = nums[i];
            } current != nums[i] current nums[i] nums i {
                count++;
                current = nums[i];
            } count++ count current = nums[i] current nums[i] nums 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) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    }
} Main
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Integer[] nums = new Integer[N];

        for (int i = 0; i < N; i++) {
            nums[i] = scanner.nextInt();
        }

        Arrays.sort(nums, Collections.reverseOrder());
        
        int current = nums[0];
        int count = 1;

        for (int i = 1; i < N; i++) {
            if (current != nums[i]) {
                count++;
                current = nums[i];
            }
        }

        System.out.println(count);
    }
}