#include <bits/stdc++.h>
using namespace std;
int n, l, a[105];
int main() {
  cin >> n >> l;
  for (int i = 1; i <= n; ++i) cin >> a[i];
  int ret = 0;
  for (int len = l; len <= 100; ++len) {
    int num = 0;
    for (int i = 1; i <= n; ++i) {
      int v = a[i];
      while (v >= len) {
        num += len;
        v -= len;
      }
    }
    if (ret < num) ret = num;
  }
  cout << ret;
  return 0;
}
