#include using namespace std; using ll=long long; constexpr ll mod = 1e9+7; int main(){ ll h, w; cin>>h>>w; int n=1<<22; vector cnt1(n), cnt2(n); for(int i=1;i prime, isprime(n,1); for(int i=2;i0;--i){ (cnt1[i]+=cnt1[i*p])%=mod; (cnt2[i]+=cnt2[i*p])%=mod; } } for(int i=1;i