#define _GLIBCXX_DEBUG #include #include #include using namespace atcoder; using namespace std; typedef long long ll; #define rep(i,a,b) for(int i=a;i; using vvi = vector; using li =vector; using lli=vector
  • ; using si =vector; using ssi =vector; const long long INF = 1e18; const long long MOD=1e9+7; //for (auto [key, val] : mp) int main() { ll a,b;cin>>a>>b; ll AE,AO,BE,BO; AE=1+a/2*2;AO=(a+1)/2*2; BE=1+b/2*2;BO=(b+1)/2*2; cout<<(AE*BE+AO*BO)%MOD; }