#include <bits/stdc++.h>
using namespace std;
bool comparator(pair<int, int> &ai, pair<int, int> &bi) {
  return ai.second < bi.second;
}
int main() {
  int n, b;
  cin >> n >> b;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int mina = INT_MAX, maxp = 0, result = b;
  for (int i = 0; i < n; i++) {
    if (a[i] < mina) {
      mina = a[i];
    }
    int p = b + (b / mina) * (a[i] - mina);
    if (p > result) {
      result = p;
    }
  }
  cout << result << endl;
  return 0;
}
