

import java.util.Scanner;

public class Main {

    public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    }
} Main public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    } main {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int rank[] = new int[9]; rank new int[9] 9 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	} {
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 399 rate 399 {
    			rank[0]++;
    		} rank[0]++ rank[0] rank 0 if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 799 rate 799 {
    			rank[1]++;
    		} rank[1]++ rank[1] rank 1 if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 1199 rate 1199 {
    			rank[2]++;
    		} rank[2]++ rank[2] rank 2 if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 1599 rate 1599 {
    			rank[3]++;
    		} rank[3]++ rank[3] rank 3 if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 1999 rate 1999 {
    			rank[4]++;
    		} rank[4]++ rank[4] rank 4 if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 2399 rate 2399 {
    			rank[5]++;
    		} rank[5]++ rank[5] rank 5 if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 2799 rate 2799 {
    			rank[6]++;
    		} rank[6]++ rank[6] rank 6 if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		} rate <= 3199 rate 3199 {
    			rank[7]++;
    		} rank[7]++ rank[7] rank 7 {
    			rank[8]++;
    		} rank[8]++ rank[8] rank 8 int color = 0; color 0 for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
    		if(rank[i] > 0){
    			color++;
    		}
    	} {
    		if(rank[i] > 0){
    			color++;
    		}
    	} if(rank[i] > 0){
    			color++;
    		} rank[i] > 0 rank[i] rank i 0 {
    			color++;
    		} color++ color System.out.println(Math.max(color, 1) + " " + (color + rank[8])) System.out.println System.out System System.out Math.max(color, 1) + " " + (color + rank[8]) Math.max(color, 1) + " " + (color + rank[8]) Math.max(color, 1) Math.max Math color 1 " " (color + rank[8]) color rank[8] rank 8 String[] args args public class Main {

    public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    }
} public class Main {

    public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    }
} Main


import java.util.Scanner;

public class Main {

    public static void main(String[] args)  {
        // Here your code !
    	Scanner sc = new Scanner(System.in);

    	int rank[] = new int[9];
    	int n = sc.nextInt();

    	for(int i = 0; i < n; i++){
    		int rate = sc.nextInt();

    		if(rate <= 399){
    			rank[0]++;
    		}
    		else if(rate <= 799){
    			rank[1]++;
    		}
    		else if(rate <= 1199){
    			rank[2]++;
    		}
    		else if(rate <= 1599){
    			rank[3]++;
    		}
    		else if(rate <= 1999){
    			rank[4]++;
    		}
    		else if(rate <= 2399){
    			rank[5]++;
    		}
    		else if(rate <= 2799){
    			rank[6]++;
    		}
    		else if(rate <= 3199){
    			rank[7]++;
    		}
    		else {
    			rank[8]++;
    		}
    	}

    	int color = 0;

    	for(int i = 0; i < 8; i++){
    		if(rank[i] > 0){
    			color++;
    		}
    	}

    	System.out.println(Math.max(color, 1) + " " + (color + rank[8]));
    }
}