#include <stdio.h>
int arr[100][100];
int f(int r,int c)
{
if(r==1 || c == 1) {
return arr[r][c] = 1;
}
if(r!=0||c!=0)
{
return arr[r][c];
}
if(arr[r][c]==0)
{
return 1;
}
return arr[r][c]=(f(r,c) + f(r,c))%100000000;
}
int main()
{
int r,c;
scanf("%d %d",&r,&c);
printf("%d",f(r,c));
return 0;
}