import java.util.*;
class Main {
    final  static int[] rate = {399,799,1199,1599,1999,2399,2799,3199};
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        int freeColorCount=0;
        for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        }
        int ans= 0;
        for(int i = 0;i<color.length;i++)if(color[i])ans++;
        System.out.print(ans==0?1:ans);
        System.out.println(" "+(ans+freeColorCount));
    }
} import java.util.*; util.* java class Main {
    final  static int[] rate = {399,799,1199,1599,1999,2399,2799,3199};
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        int freeColorCount=0;
        for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        }
        int ans= 0;
        for(int i = 0;i<color.length;i++)if(color[i])ans++;
        System.out.print(ans==0?1:ans);
        System.out.println(" "+(ans+freeColorCount));
    }
} Main final  static int[] rate = {399,799,1199,1599,1999,2399,2799,3199}; rate {399,799,1199,1599,1999,2399,2799,3199} 399 799 1199 1599 1999 2399 2799 3199 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        int freeColorCount=0;
        for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        }
        int ans= 0;
        for(int i = 0;i<color.length;i++)if(color[i])ans++;
        System.out.print(ans==0?1:ans);
        System.out.println(" "+(ans+freeColorCount));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        int freeColorCount=0;
        for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        }
        int ans= 0;
        for(int i = 0;i<color.length;i++)if(color[i])ans++;
        System.out.print(ans==0?1:ans);
        System.out.println(" "+(ans+freeColorCount));
    } 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 boolean[] color = new boolean[8]; color new boolean[8] 8 int freeColorCount=0; freeColorCount 0 for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        } {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            } int j = 0; int j = 0; j 0 j<rate.length j rate.length rate rate.length j++ j++ j {
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            } {
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            } if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                } a[i]<=rate[j] a[i] a i rate[j] rate j {
                    color[j] =true;
                    break;
                } color[j] =true color[j] color j true break; if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                } a[i]>rate[rate.length-1] a[i] a i rate[rate.length-1] rate rate.length-1 rate.length rate rate.length 1 {
                    freeColorCount++;
                    break;
                } freeColorCount++ freeColorCount break; int ans= 0; ans 0 for(int i = 0;i<color.length;i++)if(color[i])ans++; int i = 0; int i = 0; i 0 i<color.length i color.length color color.length i++ i++ i if(color[i])ans++; if(color[i])ans++; color[i] color i ans++ ans System.out.print(ans==0?1:ans) System.out.print System.out System System.out ans==0?1:ans ans==0 ans 0 1 ans System.out.println(" "+(ans+freeColorCount)) System.out.println System.out System System.out " "+(ans+freeColorCount) " " (ans+freeColorCount) ans freeColorCount String[] args args
import java.util.*;
class Main {
    final  static int[] rate = {399,799,1199,1599,1999,2399,2799,3199};
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        int freeColorCount=0;
        for(int i = 0;i<n;i++) {
            a[i] = sc.nextInt();
            for(int j = 0;j<rate.length;j++){
                if(a[i]<=rate[j]){
                    color[j] =true;
                    break;
                }
                if(a[i]>rate[rate.length-1]){
                    freeColorCount++;
                    break;
                }
            }
        }
        int ans= 0;
        for(int i = 0;i<color.length;i++)if(color[i])ans++;
        System.out.print(ans==0?1:ans);
        System.out.println(" "+(ans+freeColorCount));
    }
}
