import java.util.Scanner;
import java.util.ArrayList;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int givenNumber = scanner.nextInt(); givenNumber scanner.nextInt() scanner.nextInt scanner scanner.nextLine() scanner.nextLine scanner int[] array = new int[givenNumber]; array new int[givenNumber] givenNumber for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        } int i=0; int i=0; i 0 i<givenNumber i givenNumber i++ i++ i {
            array[i] = scanner.nextInt();
        } {
            array[i] = scanner.nextInt();
        } array[i] = scanner.nextInt() array[i] array i scanner.nextInt() scanner.nextInt scanner boolean isDuplicated = false; isDuplicated false ArrayList<Integer> newArray = new ArrayList<>(); newArray new ArrayList<>() for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        } int i=0; int i=0; i 0 i<array.length i array.length array array.length i++ i++ i {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        } {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        } for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            } int j=0; int j=0; j 0 j<newArray.size() j newArray.size() newArray.size newArray j++ j++ j {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            } {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            } if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                } array[i] == newArray.get(j) array[i] array i newArray.get(j) newArray.get newArray j {
                    isDuplicated = true;
                    break;
                } isDuplicated = true isDuplicated true break; if(!isDuplicated) {
                newArray.add(array[i]);
            } !isDuplicated isDuplicated {
                newArray.add(array[i]);
            } newArray.add(array[i]) newArray.add newArray array[i] array i isDuplicated = false isDuplicated false System.out.println(newArray.size()) System.out.println System.out System System.out newArray.size() newArray.size newArray String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        int[] array = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            array[i] = scanner.nextInt();
        }
        boolean isDuplicated = false;
        ArrayList<Integer> newArray = new ArrayList<>();
        for(int i=0; i<array.length; i++) {
            for(int j=0; j<newArray.size(); j++) {
                if(array[i] == newArray.get(j)) {
                    isDuplicated = true;
                    break;
                }
            }
            if(!isDuplicated) {
                newArray.add(array[i]);
            }
            isDuplicated = false;;
        }
        System.out.println(newArray.size());
    }
}
