import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  }

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

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  }

} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  } main {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int color = 0; color 0 int free = 0; free 0 boolean[] app = new boolean[8]; app new boolean[8] 8 for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    } {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    } int p = sc.nextInt(); p sc.nextInt() sc.nextInt sc if (p >= 3200) {
        free++;
        continue;
      } p >= 3200 p 3200 {
        free++;
        continue;
      } free++ free continue; for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      } int j = 0; int j = 0; j 0 j < 3200 j 3200 j += 400 j += 400 j 400 {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      } {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      } if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        } (j <= p) && (p < j + 400) (j <= p) j p (p < j + 400) p j + 400 j 400 {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        } if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          } app[j / 400] == false app[j / 400] app j / 400 j 400 false {
            color++;
            app[j / 400] = true;
          } color++ color app[j / 400] = true app[j / 400] app j / 400 j 400 true break; if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    } color == 0 color 0 {
      System.out.println((color + 1) + " " + (color + free));
    } System.out.println((color + 1) + " " + (color + free)) System.out.println System.out System System.out (color + 1) + " " + (color + free) (color + 1) + " " + (color + free) (color + 1) color 1 " " (color + free) color free {
      System.out.println(color + " " + (color + free));
    } System.out.println(color + " " + (color + free)) System.out.println System.out System System.out color + " " + (color + free) color + " " + (color + free) color " " (color + free) color free String[] args args public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  }

} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int color = 0;
    int free = 0;
    boolean[] app = new boolean[8];

    for (int i = 0; i < n; i++) {

      int p = sc.nextInt();

      if (p >= 3200) {
        free++;
        continue;
      }

      for (int j = 0; j < 3200; j += 400) {
        if ((j <= p) && (p < j + 400)) {
          if (app[j / 400] == false) {
            color++;
            app[j / 400] = true;
          }
          break;
        }
      }

    }

    if (color == 0) {
      System.out.println((color + 1) + " " + (color + free));
    } else {
      System.out.println(color + " " + (color + free));
    }

  }

}