#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<long long int, long long int> &a,
               const pair<long long int, long long int> &b) {
  return (a.second < b.second);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, i, j, k, l, m;
  long long int sum = 0, sum1 = 0;
  long long int c = 0, c1 = 0, c2 = 0, c3 = 0;
  vector<long long int> v;
  vector<long long int> v1;
  vector<long long int> v2;
  vector<pair<long long int, long long int> > v3;
  set<long long int> se;
  string s;
  cin >> n >> k;
  long long int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= k)
      sum = sum + 1;
    else {
      sum = sum + 2;
    }
  }
  cout << sum;
  return 0;
}
