import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

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

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int N, cnt = 0;
        Scanner scanner = new Scanner(System.in);

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        int N, cnt = 0;
        Scanner scanner = new Scanner(System.in);

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    } main {
        int N, cnt = 0;
        Scanner scanner = new Scanner(System.in);

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    } int N N cnt = 0; cnt 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() N = Integer.parseInt(scanner.next()) N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            numbers.add(Integer.parseInt(scanner.next()));
        } {
            numbers.add(Integer.parseInt(scanner.next()));
        } numbers.add(Integer.parseInt(scanner.next())) numbers.add numbers Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner numbers.sort(Comparator.naturalOrder()) numbers.sort numbers Comparator.naturalOrder() Comparator.naturalOrder Comparator int max = 0; max 0 for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        } int num numbers {
            if (max < num) {
                max = num;
                cnt++;
            }
        } {
            if (max < num) {
                max = num;
                cnt++;
            }
        } if (max < num) {
                max = num;
                cnt++;
            } max < num max num {
                max = num;
                cnt++;
            } max = num max num cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) {
        int N, cnt = 0;
        Scanner scanner = new Scanner(System.in);

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        int N, cnt = 0;
        Scanner scanner = new Scanner(System.in);

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

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

        List<Integer> numbers = new ArrayList<>();
        N = Integer.parseInt(scanner.next());

        for (int i = 0; i < N; i++) {
            numbers.add(Integer.parseInt(scanner.next()));
        }

        numbers.sort(Comparator.naturalOrder());
        int max = 0;
        for(int num : numbers) {
            if (max < num) {
                max = num;
                cnt++;
            }
        }
        System.out.println(cnt);
    }
}