
import java.util.*;

public class Main {

	public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	}
} Main public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	} main {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	} int n = 0; n 0 int flag = 0; flag 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) n = scanner.nextInt() n scanner.nextInt() scanner.nextInt scanner ArrayList<Integer> intList = new ArrayList<Integer>(); intList new ArrayList<Integer>() for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int x = scanner.nextInt();
			intList.add(x);
		} {
			int x = scanner.nextInt();
			intList.add(x);
		} int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner intList.add(x) intList.add intList x for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		} int i = 0; int i = 0; i 0 i < intList.size() i intList.size() intList.size intList i++ i++ i {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		} {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		} for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			} int j = intList.size() - 1; int j = intList.size() - 1; j intList.size() - 1 intList.size() intList.size intList 1 j > i j i j-- j-- j {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			} {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			} if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				} intList.get(j) > intList.get(j-1) intList.get(j) intList.get intList j intList.get(j-1) intList.get intList j-1 j 1 {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				} int x = intList.get(j-1); x intList.get(j-1) intList.get intList j-1 j 1 intList.set(j-1, intList.get(j)) intList.set intList j-1 j 1 intList.get(j) intList.get intList j intList.set(j, x) intList.set intList j x for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		} int i = 0; int i = 0; i 0 i < intList.size() - 1 i intList.size() - 1 intList.size() intList.size intList 1 i++ i++ i {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		} {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		} if(intList.get(i) > intList.get(i+1)) {
				flag++;
			} intList.get(i) > intList.get(i+1) intList.get(i) intList.get intList i intList.get(i+1) intList.get intList i+1 i 1 {
				flag++;
			} flag++ flag System.out.println(flag + 1) System.out.println System.out System System.out flag + 1 flag 1 String[] args args public class Main {

	public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	}
} public class Main {

	public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	}
} Main

import java.util.*;

public class Main {

	public static void main(String[] args) {

		//フィールド
		int n = 0;
		int flag = 0;
		//リスト作成
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		ArrayList<Integer> intList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++) {
			int x = scanner.nextInt();
			intList.add(x);
		}

		for(int i = 0; i < intList.size(); i++) {
			for(int j = intList.size() - 1; j > i; j--) {
				if(intList.get(j) > intList.get(j-1)) {
					int x = intList.get(j-1);
					intList.set(j-1, intList.get(j));
					intList.set(j, x);
				}
			}
		}

		for(int i = 0; i < intList.size() - 1; i++) {
			if(intList.get(i) > intList.get(i+1)) {
				flag++;
			}
		}


		System.out.println(flag + 1);
	}
}