1 #include<iostream>
2 #include<cstdio>
3 #include<cstring>
4 using namespace std;
5 long long ans;
6 long long dp1[110][110][12];
7 long long dp2[110][110][12];
8 int main()
9 {
10 int n1,n2,k1,k2,i,j,k;
11 while(scanf("%d%d%d%d",&n1,&n2,&k1,&k2)!=EOF){
12 memset(dp1,0,sizeof(dp1));
13 memset(dp2,0,sizeof(dp2));
14 dp1[1][0][1]=1; dp2[0][1][1]=1;
15 for(i=0;i<=n1;i++){
16 for(j=0;j<=n2;j++){
17 for(k=1;k<=k1;k++){
18 if(dp1[i][j][k]){
19 if(k!=k1){
20 dp1[i+1][j][k+1]+=dp1[i][j][k];
21 dp1[i+1][j][k+1]%=100000000;
22 }
23 dp2[i][j+1][1]+=dp1[i][j][k];
24 dp2[i][j+1][1]%=100000000;
25 }
26 }
27 for(k=1;k<=k2;k++){
28 if(dp2[i][j][k]){
29 if(k!=k2){
30 dp2[i][j+1][k+1]+=dp2[i][j][k];
31 dp2[i][j+1][k+1]%=100000000;
32 }
33 dp1[i+1][j][1]+=dp2[i][j][k];
34 dp1[i+1][j][1]%=100000000;
35 }
36 }
37 }
38 }
39 ans=0;
40 for(i=1;i<=k1;i++){
41 ans+=dp1[n1][n2][i];
42 ans%=100000000;
43 }
44 for(i=1;i<=k2;i++){
45 ans+=dp2[n1][n2][i];
46 ans%=100000000;
47 }
48 printf("%I64d\n",ans);
49 }
50 return 0;
51 }