mod = 998244353 def main(): import sys input = sys.stdin.readline N, M, K = map(int, input().split()) if K > M: print(pow(M, 2*N, mod)) elif K == 1: print(M) else: print(((M - K + 1) * (pow(K, 2*N, mod) - pow(K - 1, 2*N, mod)) % mod + pow(K - 1, 2*N, mod)) % mod) if __name__ == '__main__': main()