import java.util.HashSet;
import java.util.Scanner;

	public class Main {

		public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		}	
	} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

		public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		}	
	} Main public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		} main {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n HashSet<Integer> ret = new HashSet<Integer>(); ret new HashSet<Integer>() for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				a[i]=sc.nextInt();
			} {
				a[i]=sc.nextInt();
			} a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int x = 400; x 400 int plus = 0; plus 0 for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			} {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			} if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<x a[i] a i x {
					ret.add(x);
				} ret.add(x) ret.add ret x if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<2*x a[i] a i 2*x 2 x {
					ret.add(2*x);
				} ret.add(2*x) ret.add ret 2*x 2 x if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<3*x a[i] a i 3*x 3 x {
					ret.add(3*x);
				} ret.add(3*x) ret.add ret 3*x 3 x if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<4*x a[i] a i 4*x 4 x {
					ret.add(4*x);
				} ret.add(4*x) ret.add ret 4*x 4 x if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<5*x a[i] a i 5*x 5 x {
					ret.add(5*x);
				} ret.add(5*x) ret.add ret 5*x 5 x if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<6*x a[i] a i 6*x 6 x {
					ret.add(6*x);
				} ret.add(6*x) ret.add ret 6*x 6 x if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<7*x a[i] a i 7*x 7 x {
					ret.add(7*x);
				} ret.add(7*x) ret.add ret 7*x 7 x if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				} a[i]<8*x a[i] a i 8*x 8 x {
					ret.add(8*x);
				} ret.add(8*x) ret.add ret 8*x 8 x {
					plus++;
				} plus++ plus if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			} ret.size()==0 ret.size() ret.size ret 0 {
				System.out.println(1+" "+(ret.size()+plus));
			} System.out.println(1+" "+(ret.size()+plus)) System.out.println System.out System System.out 1+" "+(ret.size()+plus) 1+" "+(ret.size()+plus) 1 " " (ret.size()+plus) ret.size() ret.size ret plus {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			} System.out.println(ret.size()+" "+(ret.size()+plus)) System.out.println System.out System System.out ret.size()+" "+(ret.size()+plus) ret.size()+" "+(ret.size()+plus) ret.size() ret.size ret " " (ret.size()+plus) ret.size() ret.size ret plus String[] args args public class Main {

		public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		}	
	} public class Main {

		public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		}	
	} Main
import java.util.HashSet;
import java.util.Scanner;

	public class Main {

		public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] a = new int[n];
			HashSet<Integer> ret = new HashSet<Integer>();
			for(int i=0;i<n;i++) {
				a[i]=sc.nextInt();
			}
			
			int x = 400;
			int plus = 0;
			
			for(int i=0;i<n;i++) {
				if(a[i]<x) {
					ret.add(x);
				}else if(a[i]<2*x) {
					ret.add(2*x);
				}else if(a[i]<3*x) {
					ret.add(3*x);
				}else if(a[i]<4*x) {
					ret.add(4*x);
				}else if(a[i]<5*x) {
					ret.add(5*x);
				}else if(a[i]<6*x) {
					ret.add(6*x);
				}else if(a[i]<7*x) {
					ret.add(7*x);
				}else if(a[i]<8*x) {
					ret.add(8*x);
				}else {
					plus++;
				}
			}
			
			if(ret.size()==0) {
				System.out.println(1+" "+(ret.size()+plus));
			}else {
				System.out.println(ret.size()+" "+(ret.size()+plus));
			}
			
		}	
	}