N, M, K = map(int, input().split()) dp = [[0]*(1<= K: dp[i+1][k] += dp[i][j] dp[i+1][k] %= MOD print(sum(dp[-1]) % MOD)