import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    }
} Main public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    } main {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int rate_min[]=new int[8]; rate_min new int[8] 8 int rate_max[]=new int[8]; rate_max new int[8] 8 rate_min[0]=1 rate_min[0] rate_min 0 1 rate_max[0]=399 rate_max[0] rate_max 0 399 for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        } int i=1; int i=1; i 1 i<8 i 8 i++ i++ i {
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        } {
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        } rate_min[i]=i*400 rate_min[i] rate_min i i*400 i 400 rate_max[i]=rate_min[i]+399 rate_max[i] rate_max i rate_min[i]+399 rate_min[i] rate_min i 399 int cnt=0; cnt 0 int a[]=new int[n]; a new int[n] n boolean jdg[]=new boolean[8]; jdg new boolean[8] 8 for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        } {
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        } a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            } int j=0; int j=0; j 0 j<8 j 8 j++ j++ j {
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            } {
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            } if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                } rate_min[j]<=a[i] && a[i]<=rate_max[j] rate_min[j]<=a[i] rate_min[j] rate_min j a[i] a i a[i]<=rate_max[j] a[i] a i rate_max[j] rate_max j {
                    jdg[j]=true;
                } jdg[j]=true jdg[j] jdg j true if(a[i]>=3200){
                cnt++;
            } a[i]>=3200 a[i] a i 3200 {
                cnt++;
            } cnt++ cnt int ans=0; ans 0 for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            if(jdg[i]){
                ans++;
            }
        } {
            if(jdg[i]){
                ans++;
            }
        } if(jdg[i]){
                ans++;
            } jdg[i] jdg i {
                ans++;
            } ans++ ans if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        } ans!=0 ans 0 {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        } System.out.print(ans + " ") System.out.print System.out System System.out ans + " " ans " " System.out.println((ans + cnt)) System.out.println System.out System System.out (ans + cnt) ans cnt {
            System.out.println(1 + " " + cnt);
        } System.out.println(1 + " " + cnt) System.out.println System.out System System.out 1 + " " + cnt 1 + " " + cnt 1 " " cnt String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    }
} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);

        int n=scan.nextInt();
        int rate_min[]=new int[8];
        int rate_max[]=new int[8];
        rate_min[0]=1;
        rate_max[0]=399;
        for(int i=1;i<8;i++){
            rate_min[i]=i*400;
            rate_max[i]=rate_min[i]+399;
        }
        int cnt=0;
        int a[]=new int[n];
        boolean jdg[]=new boolean[8];
        for(int i=0;i<n;i++){
            a[i]=scan.nextInt();
            for(int j=0;j<8;j++){
                if(rate_min[j]<=a[i] && a[i]<=rate_max[j]){
                    jdg[j]=true;
                }
            }
            if(a[i]>=3200){
                cnt++;
            }
        }
        int ans=0;
        for(int i=0;i<8;i++){
            if(jdg[i]){
                ans++;
            }
        }
        if(ans!=0) {
            System.out.print(ans + " ");
            System.out.println((ans + cnt));
        }else{
            System.out.println(1 + " " + cnt);
        }

    }
}