#[warn(unused_imports)]
use proconio::{
   fastout, input,
   marker::{Bytes, Chars, Isize1, Usize1},
};

#[fastout]
fn main() {
   input! {
      n: usize,
      m: usize,
      k: usize
   }
   comb_init(n);
   let m = Mint::from(m);
   let mut ans = Mint::new(0);
   for i in 0..=k {
      ans += comb(n-1, i) * m * (m-Mint::new(1)).pow(n-i-1);
      // println!("{}", ans);
   }
   println!("{}", ans);
}

use std::ops::*;
const MOD: i64 = 998244353;
#[derive(Copy, Clone, Debug)]
pub struct Mint {
   x: i64,
}
impl Mint {
   fn new(x: i64) -> Self { Mint { x: x } }
   fn pow(self, n: usize) -> Self {
      let mut x = Mint::new(1);
      let mut r = self;
      let mut n = n;
      while n > 0 {
         if n & 1 == 1 {
            x *= r;
         }
         r *= r;
         n >>= 1;
      }
      x
   }
   fn inv(self) -> Self { self.pow((MOD - 2) as usize) }
}
impl AddAssign for Mint {
   fn add_assign(&mut self, rhs: Self) {
      self.x += rhs.x;
      self.x %= MOD;
   }
}
impl Add for Mint {
   type Output = Self;
   fn add(self, other: Self) -> Self {
      let mut res = self;
      res += other;
      res
   }
}
impl SubAssign for Mint {
   fn sub_assign(&mut self, rhs: Self) {
      self.x -= rhs.x;
      if self.x < 0 {
         self.x += MOD;
      }
   }
}
impl Sub for Mint {
   type Output = Self;
   fn sub(self, other: Self) -> Self {
      let mut res = self;
      res -= other;
      res
   }
}
impl MulAssign for Mint {
   fn mul_assign(&mut self, rhs: Self) {
      self.x *= rhs.x;
      self.x %= MOD;
   }
}
impl Mul for Mint {
   type Output = Self;
   fn mul(self, other: Self) -> Self {
      let mut res = self;
      res *= other;
      res
   }
}
impl DivAssign for Mint {
   fn div_assign(&mut self, rhs: Self) { *self *= rhs.inv(); }
}
impl Div for Mint {
   type Output = Self;
   fn div(self, other: Self) -> Self {
      let mut res = self;
      res *= other;
      res
   }
}
impl From<i64> for Mint {
   fn from(num: i64) -> Self { Mint { x: num } }
}
impl From<i32> for Mint {
   fn from(num: i32) -> Self { Mint { x: num as i64 } }
}
impl From<usize> for Mint {
   fn from(num: usize) -> Self { Mint { x: num as i64 } }
}
use std::fmt;
impl fmt::Display for Mint {
   fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}", self.x) }
}
static mut MAX_N: usize = 1;
static mut FACT: Vec<Mint> = Vec::<Mint>::new();
static mut IFACT: Vec<Mint> = Vec::<Mint>::new();
static mut COMB_FLAG: bool = false;
fn comb_init(n: usize) {
   unsafe {
      COMB_FLAG = true;
      MAX_N = n;
      FACT = vec![Mint::new(1); MAX_N + 1];
      IFACT = vec![Mint::new(1); MAX_N + 1];
      for i in 1..MAX_N + 1 {
         FACT[i] = FACT[i - 1] * Mint::from(i as i64);
      }
      IFACT[MAX_N] = FACT[MAX_N as usize].inv();
      for i in (1..MAX_N + 1).rev() {
         IFACT[i - 1] = IFACT[i] * Mint::from(i as i64);
      }
   }
}
fn comb_check(n: usize, r: usize) -> bool { unsafe { !(n > MAX_N || r > n) } }
fn comb(n: usize, r: usize) -> Mint {
   unsafe {
      if !COMB_FLAG {
         panic!("FACT is not init");
      }
   }
   if !comb_check(n, r) {
      Mint::from(0)
   } else {
      unsafe { FACT[n] * IFACT[r] * IFACT[n - r] }
   }
}


Measured memory_bytes: 5264