#include "bits/stdc++.h"
using namespace std;

#define int long long
#define PB push_back
#define PPB pop_back
typedef pair<int, int> pii;
typedef pair<double, double> pdd;

static const int INF = 1LL << 61;
static const int MOD = 100000;

int dp[55][3005];

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n, m, s;
    while (cin >> n >> m >> s, n) {
        fill(dp[0], dp[55], 0);
        dp[0][0] = 1;

        for (int i = 1; i <= m; ++i) {
            for (int j = n * n; 0 < j; --j) {
                for (int k = i; k <= s; ++k) {
                    dp[j][k] += dp[j - 1][k - i];
                    dp[j][k] %= MOD;
                }
            }
        }

        cout << dp[n * n][s] << endl;
    }
}