import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	}
} Main public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	} main {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int N=stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn boolean color[]=new boolean[8]; color new boolean[8] 8 int z=0 z 0 a=0 a 0 y=0 y 0 min=0 min 0 max=400 max 400 tourist=0; tourist 0 while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		} z<N z N {
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		} a=stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			} y<9 y 9 {
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			} if(y==8){
					tourist++;
					break;
				} y==8 y 8 {
					tourist++;
					break;
				} tourist++ tourist break; if(min<=a&&a<max){
					color[y]=true;
					break;
				} min<=a&&a<max min<=a min a a<max a max {
					color[y]=true;
					break;
				} color[y]=true color[y] color y true break; min+=400 min 400 max+=400 max 400 y++ y y=0 y 0 z++ z min=0 min 0 max=400 max 400 z=0 z 0 y=0 y 0 min=0 min 0 max=0 max 0 while(z<8){
			if(color[z])
				min++;
			z++;
		} z<8 z 8 {
			if(color[z])
				min++;
			z++;
		} if(color[z])
				min++; color[z] color z min++ min z++ z if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist)); min==0&&tourist!=0 min==0 min 0 tourist!=0 tourist 0 System.out.println(1+" "+tourist) System.out.println System.out System System.out 1+" "+tourist 1+" "+tourist 1 " " tourist System.out.println(min+" "+(min+tourist)) System.out.println System.out System System.out min+" "+(min+tourist) min+" "+(min+tourist) min " " (min+tourist) min tourist String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	}
} public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		boolean color[]=new boolean[8];
		int z=0,a=0,y=0,min=0,max=400,tourist=0;
		while(z<N){
			a=stdIn.nextInt();
			while(y<9){
				if(y==8){
					tourist++;
					break;
				}
				if(min<=a&&a<max){
					color[y]=true;
					break;
				}
				min+=400;max+=400;
				y++;
			}y=0;
			z++;min=0;max=400;
		}z=0;y=0;min=0;max=0;
		while(z<8){
			if(color[z])
				min++;
			z++;
		}
		if(min==0&&tourist!=0)
			System.out.println(1+" "+tourist);
		else
			System.out.println(min+" "+(min+tourist));
	}
}