#include <bits/stdc++.h>
using namespace std;
int n, sum, counter, a[300010];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    sum += a[i];
    if (a[i] == 2000) counter++;
  }
  int temp = sum * 1 / 11;
  temp -= (temp % 100);
  if (sum <= 11000) temp = (sum - a[n]) / 10;
  if (counter == n) temp -= (temp % 200);
  cout << sum - temp << endl;
  return 0;
}
