import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner HashSet<Integer> set = new HashSet<>(); set new HashSet<>() int count = 0; count 0 for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		} {
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		} int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			} x < 3200 x 3200 {
				set.add(x/400);
			} set.add(x/400) set.add set x/400 x 400 {
				count++;
			} count++ count int min = Math.max(set.size(),1); min Math.max(set.size(),1) Math.max Math set.size() set.size set 1 int max = set.size()+count; max set.size()+count set.size() set.size set count System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	}

} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		HashSet<Integer> set = new HashSet<>();
		int count = 0;
		for(int i=0;i<n;i++){
			int x = scanner.nextInt();
			if(x < 3200){
				set.add(x/400);
			}else{
				count++;
			}
		}
		int min = Math.max(set.size(),1);

		int max = set.size()+count;
		System.out.println(min + " " + max);
	}

}
