import java.util.*;
import java.math.RoundingMode;
import java.math.BigDecimal;
 
 
 
public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	}
} import java.util.*; util.* java import java.math.RoundingMode; RoundingMode java.math import java.math.BigDecimal; BigDecimal java.math public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] count = new int[9]; count new int[9] 9 for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		} {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 1<=a&&a<400 1<=a 1 a a<400 a 400 count[0]++ count[0] count 0 if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 400<=a&&a<800 400<=a 400 a a<800 a 800 count[1]++ count[1] count 1 if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 800<=a&&a<1200 800<=a 800 a a<1200 a 1200 count[2]++ count[2] count 2 if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 1200<=a&&a<1600 1200<=a 1200 a a<1600 a 1600 count[3]++ count[3] count 3 if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 1600<=a&&a<2000 1600<=a 1600 a a<2000 a 2000 count[4]++ count[4] count 4 if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 2000<=a&&a<2400 2000<=a 2000 a a<2400 a 2400 count[5]++ count[5] count 5 if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 2400<=a&&a<2800 2400<=a 2400 a a<2800 a 2800 count[6]++ count[6] count 6 if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++; 2800<=a&&a<3200 2800<=a 2800 a a<3200 a 3200 count[7]++ count[7] count 7 if(3200<=a) count[8]++; 3200<=a 3200 a count[8]++ count[8] count 8 int min = 0; min 0 int max = 0; max 0 for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(count[i]!=0) {
				min++;
				max++;
			}
		} {
			if(count[i]!=0) {
				min++;
				max++;
			}
		} if(count[i]!=0) {
				min++;
				max++;
			} count[i]!=0 count[i] count i 0 {
				min++;
				max++;
			} min++ min max++ max max+=count[8] max count[8] count 8 if(min==0) {
			min++;
		} min==0 min 0 {
			min++;
		} min++ min 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 sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	}
} public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	}
} Main
import java.util.*;
import java.math.RoundingMode;
import java.math.BigDecimal;
 
 
 
public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] count = new int[9];
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(1<=a&&a<400) count[0]++;
			else if(400<=a&&a<800) count[1]++;
			else if(800<=a&&a<1200) count[2]++;
			else if(1200<=a&&a<1600) count[3]++;
			else if(1600<=a&&a<2000) count[4]++;
			else if(2000<=a&&a<2400) count[5]++;
			else if(2400<=a&&a<2800) count[6]++;
			else if(2800<=a&&a<3200) count[7]++;
			else if(3200<=a) count[8]++;
		}
		int min = 0;
		int max = 0;
		for(int i = 0; i < 8; i++) {
			if(count[i]!=0) {
				min++;
				max++;
			}
		}
		max+=count[8];
		if(min==0) {
			min++;
		}
		System.out.println(min+" "+max);
	}
}