/*Sherlock and Watson and Adler*/ #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define exp 1e-10 using namespace std; const int N = 100005; const int M = 40; const int inf = 100000000; const int mod = 2009; int k1,k2,p; __int64 ans[N]; void dfs(__int64 sum,int c1,int c2) { if(c1>=k1&&c2>=k2) { ans[p++]=sum; return ; } if(c1