#include #include using namespace std; using namespace atcoder; using mint=modint998244353;//modint1000000007 #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; //B(n,V(n)) ll op(ll l, ll r) { return max(l,r); } ll e() { return 0; } ll mapping(ll l, ll r) { return l+r; } ll composition(ll l, ll r) { return l+r; } ll id() { return 0; } int main() { int n,m; cin>>n>>m; lazy_segtree seg(n+1); for(int i=2;i<=m;i++){ for(int j=i-1;j<=n;j+=i) seg.apply(j,j+1,-i+1); for(int k=0;i*k A(n); rep(i,n) A[i]=seg.get(i); ll ma=A[1]; for(int i=1;i