import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int[] color = new int[n]; color new int[n] n for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			color[i] = stdIn.nextInt();
		} {
			color[i] = stdIn.nextInt();
		} color[i] = stdIn.nextInt() color[i] color i stdIn.nextInt() stdIn.nextInt stdIn int hai = 0; hai 0 int tya = 0; tya 0 int midori = 0; midori 0 int mizuiro = 0; mizuiro 0 int aoiro = 0; aoiro 0 int kiiro = 0; kiiro 0 int daidaiiro = 0; daidaiiro 0 int akairo = 0; akairo 0 int maxcnt = 0; maxcnt 0 int mincnt = 0; mincnt 0 int mosa = 0; mosa 0 for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		} {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		} if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 1 && color[i] <= 399 color[i]>= 1 color[i] color i 1 color[i] <= 399 color[i] color i 399 {
				if(hai >= 1) {
					continue;
				}
				hai++;
			} if(hai >= 1) {
					continue;
				} hai >= 1 hai 1 {
					continue;
				} continue; hai++ hai if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i] >= 400 && color[i] <= 799 color[i] >= 400 color[i] color i 400 color[i] <= 799 color[i] color i 799 {
				if(tya >= 1) {
					continue;
				}
				tya++;

			} if(tya >= 1) {
					continue;
				} tya >= 1 tya 1 {
					continue;
				} continue; tya++ tya if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 800 && color[i] <= 1199 color[i]>= 800 color[i] color i 800 color[i] <= 1199 color[i] color i 1199 {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			} if(midori >= 1) {
					continue;
				} midori >= 1 midori 1 {
					continue;
				} continue; midori++ midori if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 1200 && color[i] <= 1599 color[i]>= 1200 color[i] color i 1200 color[i] <= 1599 color[i] color i 1599 {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			} if(mizuiro >= 1) {
					continue;
				} mizuiro >= 1 mizuiro 1 {
					continue;
				} continue; mizuiro++ mizuiro if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 1600 && color[i] <= 1999 color[i]>= 1600 color[i] color i 1600 color[i] <= 1999 color[i] color i 1999 {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			} if(aoiro >= 1) {
					continue;
				} aoiro >= 1 aoiro 1 {
					continue;
				} continue; aoiro++ aoiro if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 2000 && color[i] <= 2399 color[i]>= 2000 color[i] color i 2000 color[i] <= 2399 color[i] color i 2399 {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			} if(kiiro >= 1) {
					continue;
				} kiiro >= 1 kiiro 1 {
					continue;
				} continue; kiiro++ kiiro if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 2400 && color[i] <= 2799 color[i]>= 2400 color[i] color i 2400 color[i] <= 2799 color[i] color i 2799 {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			} if(daidaiiro >= 1) {
					continue;
				} daidaiiro >= 1 daidaiiro 1 {
					continue;
				} continue; daidaiiro++ daidaiiro if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			} color[i]>= 2800 && color[i] <= 3199 color[i]>= 2800 color[i] color i 2800 color[i] <= 3199 color[i] color i 3199 {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			} if(akairo >= 1) {
					continue;
				} akairo >= 1 akairo 1 {
					continue;
				} continue; akairo++ akairo {
				mosa++; //3200以上の猛者を捕獲
			} mosa++ mosa int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo; min hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo daidaiiro kiiro aoiro mizuiro midori hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo hai tya midori mizuiro aoiro kiiro daidaiiro akairo if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		} min >= 1 min 1 {
			mincnt = min;
			maxcnt = min + mosa;
		} mincnt = min mincnt min maxcnt = min + mosa maxcnt min + mosa min mosa {
			mincnt = 1;
			maxcnt = mosa;
		} mincnt = 1 mincnt 1 maxcnt = mosa maxcnt mosa System.out.print(mincnt+" "+maxcnt) System.out.print System.out System System.out mincnt+" "+maxcnt mincnt+" "+maxcnt mincnt " " maxcnt String[] args args public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	}

} public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] color = new int[n];
		for(int i = 0; i < n; i++) {
			color[i] = stdIn.nextInt();
		}
		int hai = 0;
		int tya = 0;
		int midori = 0;
		int mizuiro = 0;
		int aoiro = 0;
		int kiiro = 0;
		int daidaiiro = 0;
		int akairo = 0;
		
		int maxcnt = 0;
		int mincnt = 0;
		int mosa = 0;
		for(int i = 0; i < n; i++) {
			if(color[i]>= 1 && color[i] <= 399) {
				if(hai >= 1) {
					continue;
				}
				hai++;
			}else if(color[i] >= 400 && color[i] <= 799){
				if(tya >= 1) {
					continue;
				}
				tya++;

			}else if(color[i]>= 800 && color[i] <= 1199) {
				if(midori >= 1) {
					continue;
				}
				midori++;
				
			}else if(color[i]>= 1200 && color[i] <= 1599) {
				if(mizuiro >= 1) {
					continue;
				}
				mizuiro++;
			}else if(color[i]>= 1600 && color[i] <= 1999) {
				if(aoiro >= 1) {
					continue;
				}
				aoiro++;
			}else if(color[i]>= 2000 && color[i] <= 2399) {
				if(kiiro >= 1) {
					continue;
				}
				kiiro++;
			}else if(color[i]>= 2400 && color[i] <= 2799) {
				if(daidaiiro >= 1) {
					continue;
				}
				daidaiiro++;
			}else if(color[i]>= 2800 && color[i] <= 3199) {
				if(akairo >= 1) {
					continue;
				}
				akairo++;
			}else {
				mosa++; //3200以上の猛者を捕獲
			}
		}
		
		int min = hai + tya + midori + mizuiro + aoiro + kiiro + daidaiiro + akairo;
		if(min >= 1) {
			mincnt = min;
			maxcnt = min + mosa;
		}else {
			mincnt = 1;
			maxcnt = mosa;
		}
		
		System.out.print(mincnt+" "+maxcnt);
		
		
	}

}
