#include <bits/stdc++.h>
using namespace std;
int n1, n2, k1, k2, f[210][210][2], mod;
int main() {
  ios::sync_with_stdio(0);
  cin >> n1 >> n2 >> k1 >> k2;
  mod = 100000000;
  f[0][0][0] = f[0][0][1] = 1;
  for (int i = (0), _b = (n1); i <= _b; i++)
    for (int j = (0), _b = (n2); j <= _b; j++) {
      for (int k = (1), _b = (k2); k <= _b; k++)
        f[i][j + k][1] = (f[i][j][0] + f[i][j + k][1]) % mod;
      for (int k = (1), _b = (k1); k <= _b; k++)
        f[i + k][j][0] = (f[i + k][j][0] + f[i][j][1]) % mod;
    }
  cout << (f[n1][n2][0] + f[n1][n2][1]) % mod;
  return 0;
}
