1 #include<cstdio>
2 #include<cstdlib>
3 #include<iostream>
4 using namespace std;
5
6 #define rhl (12345678)
7 int n,m,k,ans,f[301][151][21][21];
8
9 int main()
10 {
11 scanf("%d %d %d",&n,&m,&k);
12 f[0][0][0][0] = 1;
13 for (int i = 0;i < n+m;++i)
14 for (int j = 0;j <= n;++j)
15 for (int x = 0;x <= k;++x)
16 for (int y = 0;y <= k;++y)
17 if (f[i][j][x][y])
18 {
19 if (x+1 <= k&&j+1<=n)
20 (f[i+1][j+1][x+1][max(y-1,0)] += f[i][j][x][y]) %= rhl;
21 if (y+1 <= k&&i-j+1<=m)
22 (f[i+1][j][max(x-1,0)][y+1] += f[i][j][x][y]) %= rhl;
23 }
24 for (int i = 0;i <= k;++i)
25 for (int j = 0;j <= k;++j)
26 (ans += f[n+m][n][i][j])%=rhl;
27 printf("%d",ans);
28 return 0;
29 }