#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int color[8] = {0};
  int cnt = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a >= 1 and a <= 399)
      color[0]++;
    else if (a <= 799)
      color[1]++;
    else if (a <= 1199)
      color[2]++;
    else if (a <= 1599)
      color[3]++;
    else if (a <= 1999)
      color[4]++;
    else if (a <= 2399)
      color[5]++;
    else if (a <= 2799)
      color[6]++;
    else if (a <= 3199)
      color[7]++;
    else if (a >= 3200)
      cnt++;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) {
    if (color[i] > 0) ans++;
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
