#include <bits/stdc++.h>
using namespace std;
long long int ans[200][200][2];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n1, n2, k1, k2, m1, m2;
  cin >> n1 >> n2 >> k1 >> k2;
  for (int i = 1; i <= k1; i++) ans[i][0][0] = 1;
  for (int i = 1; i <= k2; i++) ans[0][i][1] = 1;
  for (int i = 1; i < 101; i++) {
    for (int j = 1; j < 101; j++) {
      m1 = i - k1 - 1;
      m2 = j - k2 - 1;
      if (m1 < 0) m1 = 199;
      if (m2 < 0) m2 = 199;
      ans[i][j][0] =
          (ans[i - 1][j][1] + ans[i - 1][j][0] - ans[m1][j][1]) % 100000000;
      ans[i][j][1] =
          (ans[i][j - 1][1] + ans[i][j - 1][0] - ans[i][m2][0]) % 100000000;
    }
  }
  long long int x = (ans[n1][n2][0] + ans[n1][n2][1]) % 100000000;
  cout << (x + 100000000) % 100000000;
  return 0;
}
