#include <bits/stdc++.h>
using namespace std;
int N;
bool b[8];
int C;
int ans;
int main() {
  cin >> N;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (1 <= a && a <= 399)
      b[0] = true;
    else if (400 <= a && a <= 799)
      b[1] = true;
    else if (800 <= a && a <= 1199)
      b[2] = true;
    else if (1200 <= a && a <= 1599)
      b[3] = true;
    else if (1600 <= a && a <= 1999)
      b[4] = true;
    else if (2000 <= a && a <= 2399)
      b[5] = true;
    else if (2400 <= a && a <= 2799)
      b[6] = true;
    else if (2800 <= a && a <= 3199)
      b[7] = true;
    else
      C++;
  }
  for (int i = 0; i < 8; i++)
    if (b[i] == true) ans++;
  cout << ans << " " << min(9, ans + C);
  return 0;
}
