import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        for(int i=0;i<N;i++) a[i]=sc.nextInt();
        int[] rec = new int[9];
        for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        }
        int ans1 = 0;
        for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        }
        int ans2 = ans1+rec[8];
        System.out.print(Math.max(1,ans1));
        System.out.print(" ");
        System.out.print(ans2);
    }
}
  import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        for(int i=0;i<N;i++) a[i]=sc.nextInt();
        int[] rec = new int[9];
        for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        }
        int ans1 = 0;
        for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        }
        int ans2 = ans1+rec[8];
        System.out.print(Math.max(1,ans1));
        System.out.print(" ");
        System.out.print(ans2);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        for(int i=0;i<N;i++) a[i]=sc.nextInt();
        int[] rec = new int[9];
        for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        }
        int ans1 = 0;
        for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        }
        int ans2 = ans1+rec[8];
        System.out.print(Math.max(1,ans1));
        System.out.print(" ");
        System.out.print(ans2);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        for(int i=0;i<N;i++) a[i]=sc.nextInt();
        int[] rec = new int[9];
        for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        }
        int ans1 = 0;
        for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        }
        int ans2 = ans1+rec[8];
        System.out.print(Math.max(1,ans1));
        System.out.print(" ");
        System.out.print(ans2);
    } 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 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] a i sc.nextInt() sc.nextInt sc int[] rec = new int[9]; rec new int[9] 9 for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        } {
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        } if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++; a[i]>=3200 a[i] a i 3200 rec[8]++ rec[8] rec 8 rec[a[i]/400]++ rec[a[i]/400] rec a[i]/400 a[i] a i 400 int ans1 = 0; ans1 0 for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        } int i=0; int i=0; i 0 i<=7 i 7 i++ i++ i {
            if(rec[i]>0) ans1++;
        } {
            if(rec[i]>0) ans1++;
        } if(rec[i]>0) ans1++; rec[i]>0 rec[i] rec i 0 ans1++ ans1 int ans2 = ans1+rec[8]; ans2 ans1+rec[8] ans1 rec[8] rec 8 System.out.print(Math.max(1,ans1)) System.out.print System.out System System.out Math.max(1,ans1) Math.max Math 1 ans1 System.out.print(" ") System.out.print System.out System System.out " " System.out.print(ans2) System.out.print System.out System System.out ans2 String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        for(int i=0;i<N;i++) a[i]=sc.nextInt();
        int[] rec = new int[9];
        for(int i=0;i<N;i++){
            if(a[i]>=3200) rec[8]++;
            else rec[a[i]/400]++;
        }
        int ans1 = 0;
        for(int i=0;i<=7;i++){
            if(rec[i]>0) ans1++;
        }
        int ans2 = ans1+rec[8];
        System.out.print(Math.max(1,ans1));
        System.out.print(" ");
        System.out.print(ans2);
    }
}
 