// ---------- begin ModInt ----------
const MOD: u32 = 998_244_353;

#[derive(Clone, Copy)]
pub struct ModInt(u32);

impl std::ops::Add for ModInt {
    type Output = Self;
    fn add(self, other: Self) -> Self {
        let mut v = self.0 + other.0;
        if v >= MOD {
            v %= MOD;
        }
        Self(v)
    }
}

impl std::ops::AddAssign for ModInt {
    fn add_assign(&mut self, other: Self) {
        *self = *self + other;
    }
}

impl std::ops::Sub for ModInt {
    type Output = Self;
    fn sub(self, other: Self) -> Self {
        let mut v = self.0 + MOD - other.0;
        if v >= MOD {
            v -= MOD;
        }
        Self(v)
    }
}

impl std::ops::SubAssign for ModInt {
    fn sub_assign(&mut self, other: Self) {
        *self = *self - other;
    }
}

impl std::ops::Mul for ModInt {
    type Output = Self;
    fn mul(self, other: Self) -> Self {
        Self((self.0 as u64 * other.0 as u64 % MOD as u64) as u32)
    }
}

impl std::ops::MulAssign for ModInt {
    fn mul_assign(&mut self, other: Self) {
        *self = *self * other;
    }
}

impl std::ops::Neg for ModInt {
    type Output = Self;
    fn neg(self) -> Self {
        Self(if self.0 == 0 {0} else {MOD - self.0})
    }
}

impl std::fmt::Display for ModInt {
    fn fmt<'a>(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl std::str::FromStr for ModInt {
    type Err = std::num::ParseIntError;
    fn from_str(s: &str) -> Result<Self, Self::Err> {
        let val = s.parse::<u32>()?;
        Ok(Self::new(val))
    }
}

impl From<usize> for ModInt {
    fn from(v: usize) -> ModInt {
        Self((v % MOD as usize) as u32)
    }
}

pub trait ModIntNew<T> {
    fn new(n: T) -> ModInt;
}

impl ModIntNew<u32> for ModInt{
    fn new(n: u32) -> Self{
        ModInt(n % MOD)
    }
}

impl ModIntNew<usize> for ModInt{
    fn new(n: usize) -> Self{
        ModInt(ModInt::from(n).0 % MOD)
    }
}

#[allow(dead_code)]
impl ModInt {
    pub fn zero() -> Self {
        ModInt(0)
    }

    pub fn one() -> Self {
        ModInt(1)
    }

    pub fn pow(self, mut n: u32) -> Self {
        let mut t = Self::one();
        let mut s = self;
        while n > 0 {
            if n & 1 == 1 {
                t *= s;
            }
            s *= s;
            n >>= 1;
        }
        t
    }

    pub fn inv(self) -> Self {
        assert!(self.0 > 0);
        self.pow(MOD - 2)
    }
}
// ---------- end ModInt -----
// ---------- begin Precalc ----------
#[allow(dead_code)]
struct Precalc {
    inv: Vec<ModInt>,
    fact: Vec<ModInt>,
    ifact: Vec<ModInt>,
}

#[allow(dead_code)]
impl Precalc {
    pub fn new(n: usize) -> Precalc {
        let mut inv = vec![ModInt::one(); n + 1];
        let mut fact = vec![ModInt::one(); n + 1];
        let mut ifact = vec![ModInt::one(); n + 1];
        for i in 2..(n + 1) {
            inv[i] = -inv[MOD as usize % i] * ModInt(MOD / i as u32);
            fact[i] = fact[i - 1] * ModInt(i as u32);
            ifact[i] = ifact[i - 1] * inv[i];
        }
        Precalc {
            inv: inv,
            fact: fact,
            ifact: ifact,
        }
    }
    pub fn inv(&self, n: usize) -> ModInt {
        self.inv[n]
    }
    pub fn fact(&self, n: usize) -> ModInt {
        self.fact[n]
    }
    pub fn ifact(&self, n: usize) -> ModInt {
        self.ifact[n]
    }
    pub fn comb(&self, n: usize, k: usize) -> ModInt {
        if k > n {
            return ModInt::zero();
        }
        self.fact[n] * self.ifact[k] * self.ifact[n - k]
    }
}
// ---------- end Precalc ---

use proconio::input;
#[allow(unused_imports)]
use proconio::marker::*;


fn main() {
    input! {
        n: usize,
        m: usize,
        k: usize,
    };
    let pc = Precalc::new(n+m);
    let mut ret = ModInt::zero();
    let m = ModInt::new(m);
    for kk in 0..=k{
        ret += m * pc.comb(n-1, kk) * (m - ModInt::one()).pow((n - kk - 1) as u32);
    }
    println!("{}",ret);
}


Measured memory_bytes: 6752