import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  } main {
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ninzu = sc.nextInt(); ninzu sc.nextInt() sc.nextInt sc int[] iro = new int[8]; iro new int[8] 8 int ziyu = 0; ziyu 0 int a; a int kazu = 0; kazu 0 for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    } int i=0; int i=0; i 0 i<ninzu i ninzu i++ i++ i {
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    } {
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    } a = sc.nextInt()/400 a sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      } a case 0: 0 case 0: iro[0] = 1 iro[0] iro 0 1 break; case 1: 1 case 1: iro[1] = 1 iro[1] iro 1 1 break; case 2: 2 case 2: iro[2] = 1 iro[2] iro 2 1 break; case 3: 3 case 3: iro[3] = 1 iro[3] iro 3 1 break; case 4: 4 case 4: iro[4] = 1 iro[4] iro 4 1 break; case 5: 5 case 5: iro[5] = 1 iro[5] iro 5 1 break; case 6: 6 case 6: iro[6] = 1 iro[6] iro 6 1 break; case 7: 7 case 7: iro[7] = 1 iro[7] iro 7 1 break; default: default: ziyu++ ziyu break; for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    } int o=0; int o=0; o 0 o<8 o 8 o++ o++ o {
      if(iro[o] == 1)
        kazu++;
    } {
      if(iro[o] == 1)
        kazu++;
    } if(iro[o] == 1)
        kazu++; iro[o] == 1 iro[o] iro o 1 kazu++ kazu if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    } kazu > 0 kazu 0 {
      System.out.print(kazu + " ");
    } System.out.print(kazu + " ") System.out.print System.out System System.out kazu + " " kazu " " {
      System.out.print(1 + " ");
    } System.out.print(1 + " ") System.out.print System.out System System.out 1 + " " 1 " " kazu += ziyu kazu ziyu System.out.print(kazu) System.out.print System.out System System.out kazu String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ninzu = sc.nextInt();
    int[] iro = new int[8];
    int ziyu = 0;
    int a;
    int kazu = 0;
    for(int i=0; i<ninzu; i++){
      a = sc.nextInt()/400;
      switch(a){
        case 0:
          iro[0] = 1;
          break;
        case 1:
          iro[1] = 1;
          break;
        case 2:
          iro[2] = 1;
          break;
        case 3:
          iro[3] = 1;
          break;
        case 4:
          iro[4] = 1;
          break;
        case 5:
          iro[5] = 1;
          break;
        case 6:
          iro[6] = 1;
          break;
        case 7:
          iro[7] = 1;
          break;
        default:
          ziyu++;
          break;
      }
    }
    for(int o=0; o<8; o++){
      if(iro[o] == 1)
        kazu++;
    }
    if(kazu > 0){
      System.out.print(kazu + " ");
    }else{
      System.out.print(1 + " ");
    }
    kazu += ziyu;
    System.out.print(kazu);
  }
}