import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	} main {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	} BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String str = input.readLine(); str input.readLine() input.readLine input int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str str = input.readLine( ) str input.readLine( ) input.readLine input String[] strlist = str.split(" "); strlist str.split(" ") str.split str " " int[] list = new int[n]; list new int[n] n int count32 = 0; count32 0 boolean[] check = new boolean[8]; check new boolean[8] 8 for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		} {
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		} list[i] = Integer.parseInt(strlist[i]) list[i] list i Integer.parseInt(strlist[i]) Integer.parseInt Integer strlist[i] strlist i if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			} list[i] < 3200 list[i] list i 3200 {
				check[list[i]/400] = true;
			} check[list[i]/400] = true check[list[i]/400] check list[i]/400 list[i] list i 400 true {
				count32++;
			} count32++ count32 int count = 0; count 0 for (boolean bl: check) {
			  if (bl) count++;
		} boolean bl check {
			  if (bl) count++;
		} {
			  if (bl) count++;
		} if (bl) count++; bl count++ count if(count == 0){
			count = 1;
			count32 = count32-1;
		} count == 0 count 0 {
			count = 1;
			count32 = count32-1;
		} count = 1 count 1 count32 = count32-1 count32 count32-1 count32 1 System.out.print(count+" ") System.out.print System.out System System.out count+" " count " " System.out.println(count + count32) System.out.println System.out System System.out count + count32 count count32 String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		int n = Integer.parseInt(str);
		str = input.readLine( );
		String[] strlist = str.split(" ");
		int[] list = new int[n];
		int count32 = 0;
		boolean[] check = new boolean[8];
		for(int i=0; i<n; i++){
			list[i] = Integer.parseInt(strlist[i]);
			if(list[i] < 3200){
				check[list[i]/400] = true;
			}else{
				count32++;
			}
		}
		int count = 0;
		for (boolean bl: check) {
			  if (bl) count++;
		}
		if(count == 0){
			count = 1;
			count32 = count32-1;
		}

		System.out.print(count+" ");
		System.out.println(count + count32);

	}
}
