#include #include #include using namespace std; int main() { int n, p, x, y, first; cin >> n >> p; vector dist(n); for(int i=0;i> dist[i]; sort(dist.begin(), dist.end()); first = dist[0]; y = first - p; for(int i=1;i