#include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair P; #define fi first #define se second #define repl(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++) #define rep(i,n) repl(i,0,n) #define all(x) (x).begin(),(x).end() #define dbg(x) cout<<#x"="<y?x:y) #define mmin(x,y) (x>A>>B; ll ao=2*((A+1)/2),ae=2*(A/2)+1; ll bo=2*((B+1)/2),be=2*(B/2)+1; cout<<(ae*be+ao*bo)%mod<