import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

		public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {

		public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		}
} Main public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		} main {
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		} int iro = 0 ; iro 0 int sum = 0; sum 0 int kasan = 0 ; kasan 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc ArrayList<Integer> stateList = new ArrayList<Integer>(); stateList new ArrayList<Integer>() for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			} int i = 0; int i = 0; i 0 i < a i a i ++ i ++ i {
				stateList.add(sc.nextInt());
			} {
				stateList.add(sc.nextInt());
			} stateList.add(sc.nextInt()) stateList.add stateList sc.nextInt() sc.nextInt sc int stArray[] = new int[8]; stArray new int[8] 8 for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 } int i=0; int i=0; i 0 i<stateList.size() i stateList.size() stateList.size stateList i++ i++ i {
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 } {
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 } if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 1 ) & (stateList.get(i) <= 399) (stateList.get(i) >= 1 ) stateList.get(i) stateList.get stateList i 1 (stateList.get(i) <= 399) stateList.get(i) stateList.get stateList i 399 {
					stArray[0] = 1;
				} stArray[0] = 1 stArray[0] stArray 0 1 if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) (stateList.get(i) >= 400 ) stateList.get(i) stateList.get stateList i 400 (stateList.get(i) <= 799) stateList.get(i) stateList.get stateList i 799 {
					stArray[1] = 1;
				} stArray[1] = 1 stArray[1] stArray 1 1 if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) (stateList.get(i) >= 800 ) stateList.get(i) stateList.get stateList i 800 (stateList.get(i) <= 1199) stateList.get(i) stateList.get stateList i 1199 {
					stArray[2] = 1;
				} stArray[2] = 1 stArray[2] stArray 2 1 if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) (stateList.get(i) >= 1200 ) stateList.get(i) stateList.get stateList i 1200 (stateList.get(i) <= 1599) stateList.get(i) stateList.get stateList i 1599 {
					stArray[3] = 1;
				} stArray[3] = 1 stArray[3] stArray 3 1 if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) (stateList.get(i) >= 1600 ) stateList.get(i) stateList.get stateList i 1600 (stateList.get(i) <= 1999) stateList.get(i) stateList.get stateList i 1999 {
					stArray[4] = 1;
				} stArray[4] = 1 stArray[4] stArray 4 1 if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) (stateList.get(i) >= 2000 ) stateList.get(i) stateList.get stateList i 2000 (stateList.get(i) <= 2399) stateList.get(i) stateList.get stateList i 2399 {
					stArray[5] = 1;
				} stArray[5] = 1 stArray[5] stArray 5 1 if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) (stateList.get(i) >= 2400 ) stateList.get(i) stateList.get stateList i 2400 (stateList.get(i) <= 2799) stateList.get(i) stateList.get stateList i 2799 {
					stArray[6] = 1;
				} stArray[6] = 1 stArray[6] stArray 6 1 if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				} (stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199) (stateList.get(i) >= 2800 ) stateList.get(i) stateList.get stateList i 2800 (stateList.get(i) <= 3199) stateList.get(i) stateList.get stateList i 3199 {
					stArray[7] = 1;
				} stArray[7] = 1 stArray[7] stArray 7 1 {
					kasan = kasan + 1;
				} kasan = kasan + 1 kasan kasan + 1 kasan 1 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 } int j=0; int j=0; j 0 j<8 j 8 j++ j++ j {
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 } {
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 } if (stArray[j] == 1){
    				 sum = sum + 1;
    			 } stArray[j] == 1 stArray[j] stArray j 1 {
    				 sum = sum + 1;
    			 } sum = sum + 1 sum sum + 1 sum 1 kasan = kasan + sum kasan kasan + sum kasan sum if (sum == 0){
    			 sum = 1;
    		 } sum == 0 sum 0 {
    			 sum = 1;
    		 } sum = 1 sum 1 System.out.println(sum + " " +  kasan ) System.out.println System.out System System.out sum + " " +  kasan sum + " " +  kasan sum " " kasan String[] args args public class Main {

		public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		}
} public class Main {

		public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

		public static void main(String[] args){
			int iro = 0 ;
			int sum = 0;
			int kasan = 0 ;
			 
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int a = sc.nextInt();

			ArrayList<Integer> stateList = new ArrayList<Integer>();
					
			for (int i = 0; i < a;i ++ ){
				stateList.add(sc.nextInt());
			}
			 
			int stArray[] = new int[8];
			for(int i=0;i<stateList.size();i++){
				if ((stateList.get(i) >= 1 ) & (stateList.get(i) <= 399)) {
					stArray[0] = 1;
				}else if((stateList.get(i) >= 400 ) & (stateList.get(i) <= 799) ){
					stArray[1] = 1;
				}else if((stateList.get(i) >= 800 ) & (stateList.get(i) <= 1199) ){
					stArray[2] = 1;
				}else if((stateList.get(i) >= 1200 ) & (stateList.get(i) <= 1599) ){
					stArray[3] = 1;
				}else if((stateList.get(i) >= 1600 ) & (stateList.get(i) <= 1999) ){
					stArray[4] = 1;
				}else if((stateList.get(i) >= 2000 ) & (stateList.get(i) <= 2399) ){
					stArray[5] = 1;
				}else if((stateList.get(i) >= 2400 ) & (stateList.get(i) <= 2799) ){
					stArray[6] = 1;
				}else if((stateList.get(i) >= 2800 ) & (stateList.get(i) <= 3199)) {
					stArray[7] = 1;
				}else{
					kasan = kasan + 1;
				}
    		 }

    		 for(int j=0;j<8;j++){
    			 if (stArray[j] == 1){
    				 sum = sum + 1;
    			 }
	    	 }
    		 kasan = kasan + sum;
    		 if (sum == 0){
    			 sum = 1;
    		 }
    		 // 出力
			System.out.println(sum + " " +  kasan );
		}
}
