import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.Arrays;
import java.util.StringTokenizer;


public class Main {
	static int free=0;
	static int[] cl=new int[8];
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.UncheckedIOException; UncheckedIOException java.io import java.util.Arrays; Arrays java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	static int free=0;
	static int[] cl=new int[8];
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} Main static int free=0; free 0 static int[] cl=new int[8]; cl new int[8] 8 public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	} main {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	} SC sc=new SC(System.in); sc new SC(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc Arrays.fill(cl, 0) Arrays.fill Arrays cl 0 for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		} {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		} int rate=sc.nextInt(); rate sc.nextInt() sc.nextInt sc if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			} rate>=3200 rate 3200 {
				free++;
			} free++ free {
				cl[rate/400]++;
			} cl[rate/400]++ cl[rate/400] cl rate/400 rate 400 int notjiyu=0; notjiyu 0 for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(cl[i]>0) {
				notjiyu++;
			}
		} {
			if(cl[i]>0) {
				notjiyu++;
			}
		} if(cl[i]>0) {
				notjiyu++;
			} cl[i]>0 cl[i] cl i 0 {
				notjiyu++;
			} notjiyu++ notjiyu if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		} notjiyu>0 notjiyu 0 {
			pl(notjiyu+" "+(notjiyu+free));
		} pl(notjiyu+" "+(notjiyu+free)) pl notjiyu+" "+(notjiyu+free) notjiyu+" "+(notjiyu+free) notjiyu " " (notjiyu+free) notjiyu free if(notjiyu==0) {
			pl(1+" "+free);
		} notjiyu==0 notjiyu 0 {
			pl(1+" "+free);
		} pl(1+" "+free) pl 1+" "+free 1+" "+free 1 " " free String[] args args public static void pl(Object o) {
		System.out.println(o);
	} pl {
		System.out.println(o);
	} System.out.println(o) System.out.println System.out System System.out o Object o o public static void pl() {
		System.out.println();
	} pl {
		System.out.println();
	} System.out.println() System.out.println System.out System System.out public static void p(Object o) {
		System.out.print(o);
	} p {
		System.out.print(o);
	} System.out.print(o) System.out.print System.out System System.out o Object o o static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	} SC private BufferedReader reader = null; reader null private StringTokenizer tokenizer = null; tokenizer null public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		} SC {
			reader = new BufferedReader(new InputStreamReader(in));
		} reader = new BufferedReader(new InputStreamReader(in)) reader new BufferedReader(new InputStreamReader(in)) InputStream in in public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		} next {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		} if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			} tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			} try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				} IOException e {
					throw new UncheckedIOException(e);
				} throw new UncheckedIOException(e); new UncheckedIOException(e) {
					tokenizer = new StringTokenizer(reader.readLine());
				} tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public int nextInt() {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() {
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() {
			return Double.parseDouble(next());
		} nextDouble {
			return Double.parseDouble(next());
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		} nextLine {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		} try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			} IOException e {
				throw new UncheckedIOException(e);
			} throw new UncheckedIOException(e); new UncheckedIOException(e) {
				return reader.readLine();
			} return reader.readLine(); reader.readLine() reader.readLine reader public class Main {
	static int free=0;
	static int[] cl=new int[8];
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} public class Main {
	static int free=0;
	static int[] cl=new int[8];
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.Arrays;
import java.util.StringTokenizer;


public class Main {
	static int free=0;
	static int[] cl=new int[8];
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int N=sc.nextInt();
		Arrays.fill(cl, 0);
		for(int i=0; i<N; i++) {
			int rate=sc.nextInt();
			if(rate>=3200) {
				free++;
			}
			else {
				cl[rate/400]++;
			}
		}
		int notjiyu=0;
		for(int i=0; i<8; i++) {
			if(cl[i]>0) {
				notjiyu++;
			}
		}
		if(notjiyu>0) {
			pl(notjiyu+" "+(notjiyu+free));
		}
		else if(notjiyu==0) {
			pl(1+" "+free);
		}

	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
}
