#include using namespace std; int main(){ int n,x; cin>>n>>x; vector a(n); int ans=-x; for (int i=0;i>a[i],ans+=a[i]; ans=max(ans,0); cout<