import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.Map.Entry;

public class Main{
	
	public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.*; util.* java import java.util.Map.Entry; Entry java.util.Map public class Main{
	
	public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	}
} Main public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	} main {
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) boolean[] c = new boolean[8]; c new boolean[8] 8 int t = 0; t 0 int N = in.nextInt(); N in.nextInt() in.nextInt in for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                } {
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                } int r = in.nextInt(); r in.nextInt() in.nextInt in if(r >= 3200) t++; r >= 3200 r 3200 t++ t if(r >= 2800 && r < 3200) c[7] = true; r >= 2800 && r < 3200 r >= 2800 r 2800 r < 3200 r 3200 c[7] = true c[7] c 7 true if(r >= 2400 && r < 2800) c[6] = true; r >= 2400 && r < 2800 r >= 2400 r 2400 r < 2800 r 2800 c[6] = true c[6] c 6 true if(r >= 2000 && r < 2400) c[5] = true; r >= 2000 && r < 2400 r >= 2000 r 2000 r < 2400 r 2400 c[5] = true c[5] c 5 true if(r >= 1600 && r < 2000) c[4] = true; r >= 1600 && r < 2000 r >= 1600 r 1600 r < 2000 r 2000 c[4] = true c[4] c 4 true if(r >= 1200 && r < 1600) c[3] = true; r >= 1200 && r < 1600 r >= 1200 r 1200 r < 1600 r 1600 c[3] = true c[3] c 3 true if(r >= 800 && r < 1200) c[2] = true; r >= 800 && r < 1200 r >= 800 r 800 r < 1200 r 1200 c[2] = true c[2] c 2 true if(r >= 400 && r < 800) c[1] = true; r >= 400 && r < 800 r >= 400 r 400 r < 800 r 800 c[1] = true c[1] c 1 true if(r >= 1 && r < 400) c[0] = true; r >= 1 && r < 400 r >= 1 r 1 r < 400 r 400 c[0] = true c[0] c 0 true int min = 0; min 0 for(int i = 0; i < 8; i++)
                    if(c[i]) min++; int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i if(c[i]) min++; if(c[i]) min++; c[i] c i min++ min if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t)); min == 0 min 0 System.out.println(1 + " " + t) System.out.println System.out System System.out 1 + " " + t 1 + " " + t 1 " " t System.out.println(min + " " + (min + t)) System.out.println System.out System System.out min + " " + (min + t) min + " " + (min + t) min " " (min + t) min t String[] args args public class Main{
	
	public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	}
} public class Main{
	
	public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.Map.Entry;

public class Main{
	
	public static void main(String[] args) throws IOException{
		//File file = new File("input.txt");
		//Scanner in = new Scanner(file);
		Scanner in = new Scanner(System.in);
		
		boolean[] c = new boolean[8];
		int t = 0;
		int N = in.nextInt();
                for(int i = 0; i < N; i++){
                   int r = in.nextInt();
                   if(r >= 3200) t++;
                   if(r >= 2800 && r < 3200) c[7] = true;
                   if(r >= 2400 && r < 2800) c[6] = true;
                   if(r >= 2000 && r < 2400) c[5] = true;
                   if(r >= 1600 && r < 2000) c[4] = true;
                   if(r >= 1200 && r < 1600) c[3] = true;
                   if(r >= 800 && r < 1200) c[2] = true;
                   if(r >= 400 && r < 800) c[1] = true;
                   if(r >= 1 && r < 400) c[0] = true;
                }
		int min = 0;
                for(int i = 0; i < 8; i++)
                    if(c[i]) min++;
		if(min == 0) System.out.println(1 + " " + t);
                else System.out.println(min + " " + (min + t));
	}
}
