import java.util.Scanner;

//C問題
public class Main {
	public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	}
} Main public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	} main {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	} int rate[] = new int[10]; rate new int[10] 10 for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		} int cnt = 0; int cnt = 0; cnt 0 cnt < 10 cnt 10 cnt++ cnt++ cnt {
			rate[cnt] = 0;
		} {
			rate[cnt] = 0;
		} rate[cnt] = 0 rate[cnt] rate cnt 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a; a for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    } int cnt = 0; int cnt = 0; cnt 0 cnt < N cnt N cnt++ cnt++ cnt {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    } {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    } a = Integer.parseInt(sc.next()) a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (1 <= a)&&(a <= 399) (1 <= a) 1 a (a <= 399) a 399 {
	    		rate[0] = 1;
	    	} rate[0] = 1 rate[0] rate 0 1 if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (400 <= a)&&(a <= 799) (400 <= a) 400 a (a <= 799) a 799 {
	    		rate[1] = 1;
	    	} rate[1] = 1 rate[1] rate 1 1 if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (800 <= a)&&(a <= 1199) (800 <= a) 800 a (a <= 1199) a 1199 {
	    		rate[2] = 1;
	    	} rate[2] = 1 rate[2] rate 2 1 if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (1200 <= a)&&(a <= 1599) (1200 <= a) 1200 a (a <= 1599) a 1599 {
	    		rate[3] = 1;
	    	} rate[3] = 1 rate[3] rate 3 1 if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (1600 <= a)&&(a <= 1999) (1600 <= a) 1600 a (a <= 1999) a 1999 {
	    		rate[4] = 1;
	    	} rate[4] = 1 rate[4] rate 4 1 if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (2000 <= a)&&(a <= 2399) (2000 <= a) 2000 a (a <= 2399) a 2399 {
	    		rate[5] = 1;
	    	} rate[5] = 1 rate[5] rate 5 1 if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (2400 <= a)&&(a <= 2799) (2400 <= a) 2400 a (a <= 2799) a 2799 {
	    		rate[6] = 1;
	    	} rate[6] = 1 rate[6] rate 6 1 if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (2800 <= a)&&(a <= 3199) (2800 <= a) 2800 a (a <= 3199) a 3199 {
	    		rate[7] = 1;
	    	} rate[7] = 1 rate[7] rate 7 1 if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	} (3200 <= a)&&(a <= 4800) (3200 <= a) 3200 a (a <= 4800) a 4800 {
	    		rate[8] = rate[8] + 1;
	    	} rate[8] = rate[8] + 1 rate[8] rate 8 rate[8] + 1 rate[8] rate 8 1 sc.close() sc.close sc int sum = 0; sum 0 for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    } int cnt = 0; int cnt = 0; cnt 0 cnt < 10 cnt 10 cnt++ cnt++ cnt {
	    	sum = sum + rate[cnt];
	    } {
	    	sum = sum + rate[cnt];
	    } sum = sum + rate[cnt] sum sum + rate[cnt] sum rate[cnt] rate cnt if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    } (sum-rate[8]) == 0 (sum-rate[8]) sum rate[8] rate 8 0 {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    } System.out.print((sum-rate[8] + 1)) System.out.print System.out System System.out (sum-rate[8] + 1) sum-rate[8] sum rate[8] rate 8 1 {
	    	System.out.print((sum-rate[8]));
	    } System.out.print((sum-rate[8])) System.out.print System.out System System.out (sum-rate[8]) sum rate[8] rate 8 System.out.print(" "+sum) System.out.print System.out System System.out " "+sum " " sum String[] args args public class Main {
	public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	}
} public class Main {
	public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	}
} Main
import java.util.Scanner;

//C問題
public class Main {
	public static void main(String[] args) {

		//レートで区分をわける
		//
		int rate[] = new int[10];

		//配列を0で初期化
		for(int cnt = 0;cnt < 10; cnt++) {
			rate[cnt] = 0;
		}

		//スキャナーを宣言する
	    Scanner sc = new Scanner(System.in);

	    //入力を受け取る
	    int N = Integer.parseInt(sc.next());
	    int a;

	    for(int cnt = 0; cnt < N; cnt++) {
	    	a = Integer.parseInt(sc.next());
	    	//レートで区分分け
	    	if((1 <= a)&&(a <= 399)){
	    		rate[0] = 1;
	    	}
	    	else if((400 <= a)&&(a <= 799)){
	    		rate[1] = 1;
	    	}
	    	else if((800 <= a)&&(a <= 1199)){
	    		rate[2] = 1;
	    	}
	    	else if((1200 <= a)&&(a <= 1599)){
	    		rate[3] = 1;
	    	}
	    	else if((1600 <= a)&&(a <= 1999)){
	    		rate[4] = 1;
	    	}
	    	else if((2000 <= a)&&(a <= 2399)){
	    		rate[5] = 1;
	    	}
	    	else if((2400 <= a)&&(a <= 2799)){
	    		rate[6] = 1;
	    	}
	    	else if((2800 <= a)&&(a <= 3199)){
	    		rate[7] = 1;
	    	}
	    	else if((3200 <= a)&&(a <= 4800)){
	    		rate[8] = rate[8] + 1;
	    	}
	    }

	    //スキャナーを閉じる
	    sc.close();
	    //色の合計
	    int sum = 0;

	    for (int cnt = 0;cnt < 10; cnt++) {
	    	sum = sum + rate[cnt];
	    }

	    //出力
	    //最小値
	    if((sum-rate[8]) == 0) {
	    	//sumが0の時
	    	System.out.print((sum-rate[8] + 1));
	    }
	    else {
	    	System.out.print((sum-rate[8]));
	    }

	    //最大値
	    System.out.print(" "+sum);
	}
}
