import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
    // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } main {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc Integer[] mochies = new Integer[n]; mochies new Integer[n] n for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            mochies[i] = Integer.valueOf(sc.nextLine());
        } {
            mochies[i] = Integer.valueOf(sc.nextLine());
        } mochies[i] = Integer.valueOf(sc.nextLine()) mochies[i] mochies i Integer.valueOf(sc.nextLine()) Integer.valueOf Integer sc.nextLine() sc.nextLine sc Arrays.sort(mochies, Comparator.reverseOrder()) Arrays.sort Arrays mochies Comparator.reverseOrder() Comparator.reverseOrder Comparator int cnt = 1; cnt 1 for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < mochies.length - 1 i mochies.length - 1 mochies.length mochies mochies.length 1 i++ i++ i {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        } {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        } if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            } !mochies[i].equals(mochies[i + 1]) mochies[i].equals(mochies[i + 1]) mochies[i].equals mochies[i] mochies i mochies[i + 1] mochies i + 1 i 1 {
                cnt++;
            } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} public class Main {
    // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    // kagami mochi
    public static void main(String[] args) {
        // 入力処理
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());

        Integer[] mochies = new Integer[n];
        for (int i = 0; i < n; i++) {
            mochies[i] = Integer.valueOf(sc.nextLine());
        }

        Arrays.sort(mochies, Comparator.reverseOrder());

        int cnt = 1;
        for (int i = 0; i < mochies.length - 1; i++) {
            if (!mochies[i].equals(mochies[i + 1])) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
}
