
import java.util.Scanner;

public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    }
} Main private static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    } main {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    } int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] count = new int[9]; count new int[9] 9 for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	} {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	} int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int rate = a / 400; rate a / 400 a 400 rate = (rate > 8 ? 8 : rate) rate (rate > 8 ? 8 : rate) rate > 8 rate 8 8 rate count[rate]++ count[rate] count rate int min = 0; min 0 for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
	    if(count[i] > 0) min++;
	} {
	    if(count[i] > 0) min++;
	} if(count[i] > 0) min++; count[i] > 0 count[i] count i 0 min++ min int max = min + count[8]; max min + count[8] min count[8] count 8 if(min == 0) min = 1; min == 0 min 0 min = 1 min 1 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max scan.close() scan.close scan String[] args args public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    }
} public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    }
} Main

import java.util.Scanner;

public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = Integer.parseInt(scan.next());

	int[] count = new int[9];
	
	for (int i = 0; i < N; i++) {
	    int a = Integer.parseInt(scan.next());
	    int rate = a / 400;
	    rate = (rate > 8 ? 8 : rate);

	    count[rate]++;
	}

	int min = 0;
	for (int i = 0; i < 8; i++) {
	    if(count[i] > 0) min++;
	}
	int max = min + count[8];
	if(min == 0) min = 1;
	
	System.out.println(min + " " + max);
	scan.close();
    }
}
