#include <bits/stdc++.h>
using namespace std;
long long f[110][110][2];
int main() {
  ios_base::sync_with_stdio(0);
  int n1, n2, k1, k2;
  cin >> n1 >> n2 >> k1 >> k2;
  f[0][0][0] = 1;
  f[0][0][1] = 1;
  for (int x = 0; x <= n1; x++)
    for (int y = 0; y <= n2; y++) {
      for (int i = 1; i <= min(k1, x); i++) {
        f[x][y][0] += f[x - i][y][1];
        f[x][y][0] %= 100000000;
      }
      for (int i = 1; i <= min(k2, y); i++) {
        f[x][y][1] += f[x][y - i][0];
        f[x][y][1] %= 100000000;
      }
    }
  cout << (f[n1][n2][0] + f[n1][n2][1]) % 100000000 << endl;
  return 0;
}
