#include <bits/stdc++.h>
using namespace std;
int main() {
  int min = 0, max = 0, s, N;
  cin >> N;
  int gra = 0, cha = 0, gre = 0, mizu = 0, blu = 0, ye = 0, ora = 0, red = 0,
      oth = 0;
  for (int i = 0; i < N; i++) {
    cin >> s;
    if (1 <= s && s <= 399)
      gra = 1;
    else if (400 <= s && s <= 799)
      cha = 1;
    else if (800 <= s && s <= 1199)
      gre = 1;
    else if (1200 <= s && s <= 1599)
      mizu = 1;
    else if (1600 <= s && s <= 1999)
      blu = 1;
    else if (2000 <= s && s <= 2399)
      ye = 1;
    else if (2400 <= s && s <= 2799)
      ora = 1;
    else if (1800 <= s && s <= 3199)
      red = 1;
    else
      oth++;
  }
  min = gra + cha + gre + mizu + blu + ye + ora + red;
  max = min + oth;
  cout << min << " " << max;
}
