#include <bits/stdc++.h>
int main() {
  int n = 0, b = 0, rate[100] = {};
  std::cin >> n;
  bool gray = false;
  bool brown = false;
  bool green = false;
  bool rightblue = false;
  bool blue = false;
  bool yellow = false;
  bool orange = false;
  bool red = false;
  bool yomaru = false;
  bool black = false;
  int count = 0;
  int yomarucount = 0;
  for (int i = 0; i < n; i++) {
    std::cin >> rate[i];
    if (rate[i] == 0) {
      if (black = 0) {
        count++;
        black = true;
      }
    } else if (1 <= rate[i] && rate[i] <= 399) {
      if (gray == 0) {
        count++;
        gray = true;
      }
    } else if (400 <= rate[i] && rate[i] <= 799) {
      if (brown == 0) {
        count++;
        brown = true;
      }
    } else if (800 <= rate[i] && rate[i] <= 1199) {
      if (green == 0) {
        count++;
        green = true;
      }
    } else if (1200 <= rate[i] && rate[i] <= 1599) {
      if (rightblue == 0) {
        count++;
        rightblue = true;
      }
    } else if (1600 <= rate[i] && rate[i] <= 1999) {
      if (blue == 0) {
        count++;
        blue = true;
      }
    } else if (2000 <= rate[i] && rate[i] <= 2399) {
      if (yellow == 0) {
        count++;
        yellow = true;
      }
    } else if (2400 <= rate[i] && rate[i] <= 2799) {
      if (orange == 0) {
        count++;
        orange = true;
      }
    } else if (2800 <= rate[i] && rate[i] <= 3199) {
      if (red == 0) {
        count++;
        red = true;
      }
    } else {
      yomarucount++;
      yomaru = true;
    }
  }
  if (yomaru) {
    b = count + yomarucount;
    if (b > 9) {
      b = 9;
    }
    std::cout << count << " " << b << std::endl;
  } else {
    std::cout << count << " " << count << std::endl;
  }
}
