import 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];
      for(int i = 0;i < n;i++)a[i]=sc.nextInt();
      int[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    }
    public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    }
    public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    }
} import java.util.*; util.* java public 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[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    }
    public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    }
    public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    }
} 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[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    } 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[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    } 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[] cnt = new int[9]; cnt new int[9] 9 for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      } {
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      } if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<400 a[i] a i 400 cnt[0]++ cnt[0] cnt 0 if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<800 a[i] a i 800 cnt[1]++ cnt[1] cnt 1 if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<1200 a[i] a i 1200 cnt[2]++ cnt[2] cnt 2 if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<1600 a[i] a i 1600 cnt[3]++ cnt[3] cnt 3 if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<2000 a[i] a i 2000 cnt[4]++ cnt[4] cnt 4 if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<2400 a[i] a i 2400 cnt[5]++ cnt[5] cnt 5 if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<2800 a[i] a i 2800 cnt[6]++ cnt[6] cnt 6 if(a[i]<3200)cnt[7]++;
        else cnt[8]++; a[i]<3200 a[i] a i 3200 cnt[7]++ cnt[7] cnt 7 cnt[8]++ cnt[8] cnt 8 int sum = 0; sum 0 for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++; int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i if(cnt[i]>0)sum++; if(cnt[i]>0)sum++; cnt[i]>0 cnt[i] cnt i 0 sum++ sum if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      } sum==0 sum 0 System.out.println(1+" "+(sum+cnt[8])) System.out.println System.out System System.out 1+" "+(sum+cnt[8]) 1+" "+(sum+cnt[8]) 1 " " (sum+cnt[8]) sum cnt[8] cnt 8 {
      	System.out.println(sum+" "+(sum+cnt[8]));
      } System.out.println(sum+" "+(sum+cnt[8])) System.out.println System.out System System.out sum+" "+(sum+cnt[8]) sum+" "+(sum+cnt[8]) sum " " (sum+cnt[8]) sum cnt[8] cnt 8 String[] args args public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    } lcm {
      return x*y/gcd(x,y);
    } return x*y/gcd(x,y); x*y/gcd(x,y) x*y x y gcd(x,y) gcd x y int x x int y y public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    } gcd {
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    } if(x < y)return gcd(y,x); x < y x y return gcd(y,x); gcd(y,x) gcd y x if(y==0)return x; y==0 y 0 return x; x return gcd(y,x%y); gcd(y,x%y) gcd y x%y x y int x x int y y public 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[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    }
    public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    }
    public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    }
} public 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[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    }
    public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    }
    public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    }
} Main
import 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];
      for(int i = 0;i < n;i++)a[i]=sc.nextInt();
      int[] cnt = new int[9];
      for(int i = 0;i < n;i++){
      	if(a[i]<400)cnt[0]++;
        else if(a[i]<800)cnt[1]++;
        else if(a[i]<1200)cnt[2]++;
        else if(a[i]<1600)cnt[3]++;
        else if(a[i]<2000)cnt[4]++;
        else if(a[i]<2400)cnt[5]++;
        else if(a[i]<2800)cnt[6]++;
        else if(a[i]<3200)cnt[7]++;
        else cnt[8]++;
      }
      int sum = 0;
      for(int i = 0;i < 8;i++)if(cnt[i]>0)sum++;
      if(sum==0)System.out.println(1+" "+(sum+cnt[8]));
      else{
      	System.out.println(sum+" "+(sum+cnt[8]));
      }
    }
    public static int lcm(int x, int y){
      return x*y/gcd(x,y);
    }
    public static int gcd(int x, int y){
      if(x < y)return gcd(y,x);
      if(y==0)return x;
      return gcd(y,x%y);
    }
}
