import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int m = sc.nextInt(); sc.close(); int mod = 998244353; long[] ph = new long[m + 1]; long[] pw = new long[m + 1]; for (int i = 1; i <= m; i++) { ph[i] = power(i, h, mod); pw[i] = power(i, w, mod); } long ans = 0; for (int i = 1; i <= m; i++) { long v1 = ph[i] - ph[i - 1] + mod; v1 %= mod; long v2 = pw[i] - pw[i - 1] + mod; v2 %= mod; long v = v1 * v2 % mod; ans += v; } ans %= mod; System.out.println(ans); } static long power(long x, long n, int m) { if (n == 0) { return 1; } long val = power(x, n / 2, m); val = val * val % m; if (n % 2 == 1) { x %= m; val = val * x % m; } return val; } }