#include <bits/stdc++.h>
using namespace std;
int vis[8];
int main() {
  int n;
  cin >> n;
  int a;
  int more = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      more++;
    else if (a >= 2800)
      vis[7]++;
    else if (a >= 2400)
      vis[6]++;
    else if (a >= 2000)
      vis[5]++;
    else if (a >= 1600)
      vis[4]++;
    else if (a >= 1200)
      vis[3]++;
    else if (a >= 800)
      vis[2]++;
    else if (a >= 400)
      vis[1]++;
    else if (a >= 1)
      vis[0]++;
  }
  int found = 0;
  for (int i = 0; i < 8; i++) {
    if (vis[i]) found++;
  }
  if (found == 0)
    cout << 1 << ' ';
  else
    cout << found << ' ';
  cout << min(found + more, 8) << endl;
  return 0;
}
