#include using namespace std; int main(){ int N,H; cin >> N >> H; vector T(N); for(int i=0;i>T[i]; T[i] += H; } cout << T[0]; for(int i=1;i