#include <bits/stdc++.h>
using namespace std;
int z[102][102][24];
int main() {
  int n1, n2, k1, k2;
  cin >> n1 >> n2 >> k1 >> k2;
  z[0][0][0] = 1;
  for (int i = 0; i <= n1; i++)
    for (int j = 0; j <= n2; j++)
      for (int k = 0; k < 23; k++) {
        if (i > n1) continue;
        if (j > n2) continue;
        if (k <= 10 && k > k1) continue;
        if (k > 11 && k - 12 > k2) continue;
        z[i][j][k] %= 100000000;
        if (k <= 10) {
          z[i + 1][j][k + 1] += z[i][j][k];
          z[i][j + 1][13] += z[i][j][k];
          if (z[i + 1][j][k + 1] < 0 || z[i][j + 1][13] < 0)
            cout << "Asdasdads";
        }
        if (k > 11) {
          z[i][j + 1][k + 1] += z[i][j][k];
          z[i + 1][j][1] += z[i][j][k];
          if (z[i + 1][j][1] < 0 || z[i][j + 1][k + 1] < 0) cout << "Asdasdads";
        }
      }
  cout << (z[n1 + 1][n2][1] + z[n1][n2 + 1][13]) % 100000000;
  return 0;
}
