#include <bits/stdc++.h>
int n, boss, mi, mx;
bool color[10];
int main(void) {
  std::cin >> n;
  for (int i = 1; i <= n; i++) {
    int Rating;
    std::cin >> Rating;
    if (Rating >= 1 && Rating <= 399) color[1] = true;
    if (Rating >= 400 && Rating <= 799) color[2] = true;
    if (Rating >= 800 && Rating <= 1199) color[3] = true;
    if (Rating >= 1200 && Rating <= 1599) color[4] = true;
    if (Rating >= 1600 && Rating <= 1999) color[5] = true;
    if (Rating >= 2000 && Rating <= 2399) color[6] = true;
    if (Rating >= 2400 && Rating <= 2799) color[7] = true;
    if (Rating >= 2800 && Rating <= 3199) color[8] = true;
    if (Rating >= 3200) boss++;
  }
  for (int i = 1; i <= 8; i++) {
    if (color[i]) {
      mi++;
      mx++;
    } else if (boss > 0 && !color[i]) {
      boss--;
      mx++;
    }
  }
  std::cout << mi << ' ' << mx << std::endl;
  return 0;
}
