import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int total = Integer.parseInt(sc.next()); total Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int total = Integer.parseInt(sc.next());
        List<Integer> list = new ArrayList<>();
        loop:for(int x=1;x<=total;x++){
            int z = Integer.parseInt(sc.next());
            for(Integer y:list){
                if(z==y) {
                    continue loop;
                }
            }
            list.add(z);
        }
        System.out.println(list.size());
    }
}
