//#define NDEBUG #pragma warning(disable : 4146) #include #include #include #include #include #include #include #include namespace n91 { using i32 = std::int32_t; using i64 = std::int64_t; using u32 = std::uint32_t; using u64 = std::uint64_t; using isize = std::ptrdiff_t; using usize = std::size_t; using f64 = double; struct rep { struct itr { usize i; constexpr itr(const usize i) noexcept : i(i) {} void operator++() noexcept { ++i; } constexpr usize operator*() const noexcept { return i; } constexpr bool operator!=(const itr x) const noexcept { return i != x.i; } }; const itr f, l; constexpr rep(const usize f, const usize l) noexcept : f(std::min(f, l)), l(l) {} constexpr auto begin() const noexcept { return f; } constexpr auto end() const noexcept { return l; } }; struct revrep { struct itr { usize i; constexpr itr(const usize i) noexcept : i(i) {} void operator++() noexcept { --i; } constexpr usize operator*() const noexcept { return i; } constexpr bool operator!=(const itr x) const noexcept { return i != x.i; } }; const itr f, l; constexpr revrep(const usize f, const usize l) noexcept : f(l - 1), l(std::min(f, l) - 1) {} constexpr auto begin() const noexcept { return f; } constexpr auto end() const noexcept { return l; } }; template auto md_vec(const usize n, const T &value) { return std::vector(n, value); } template auto md_vec(const usize n, Args... args) { return std::vector(n, md_vec(args...)); } template constexpr T difference(const T &a, const T &b) noexcept { return a < b ? b - a : a - b; } template void chmin(T &a, const T &b) noexcept { if (b < a) a = b; } template void chmax(T &a, const T &b) noexcept { if (a < b) a = b; } template class rec_lambda { F f; public: rec_lambda(F &&f_) : f(std::forward(f_)) {} template auto operator()(Args &&... args) const { return f(*this, std::forward(args)...); } }; template T scan() { T ret; std::cin >> ret; return ret; } constexpr char eoln = '\n'; template T ceildiv(const T &l, const T &r) { return l / r + (l % r != 0 ? 1 : 0); } #ifdef N91_LOCAL #define OJ_LOCAL(a, b) b #else #define OJ_LOCAL(a, b) a #endif } // namespace n91 #include #include #include namespace n91 { template class mint_utils { using usize = std::size_t; std::vector fact_, inv_fact_; public: mint_utils() : fact_(), inv_fact_() {} explicit mint_utils(const usize n) : fact_(n + 1), inv_fact_(n + 1) { fact_[0] = 1; for (usize i = 0; i != n; i += 1) { fact_[i + 1] = fact_[i] * (i + 1); } inv_fact_[n] = T(1) / fact_[n]; for (usize i = n; i != 0; i -= 1) { inv_fact_[i - 1] = inv_fact_[i] * i; } } T fact(const usize n) const { return fact_[n]; } T inv_fact(const usize n) const { return inv_fact_[n]; } T binom(const usize n, const usize r) const { return fact_[n] * inv_fact_[r] * inv_fact_[n - r]; } T homo(const usize n, const usize r) const { return fact_[n + r - 1] * inv_fact_[n] * inv_fact_[r - 1]; } }; } // namespace n91 #include namespace n91 { void main_() { using mint = atcoder::static_modint<924844033>; const usize A = scan(); const usize B = scan(); const usize C = scan(); if ((A + B + C) % 2 == 1) { std::cout << 0 << eoln; return; } const usize N = (A + B + C) / 2; std::array, 3> s, t; std::fill(s.begin(), s.end(), std::vector(N + 1, 0)); t = s; const mint_utils util(N + 1); for (const usize i : rep(0, std::min(B, N) + 1)) { s[(2 * i + 2 * B) % 3][i] += util.inv_fact(i) * util.inv_fact(B - i); } for (const usize i : rep(0, std::min(C, N) + 1)) { t[(C + i) % 3][i] += util.inv_fact(i) * util.inv_fact(C - i); } mint ans = 0; for (const usize d : rep(0, 3)) { const auto &x = s[d]; const auto &y = t[(3 - d) % 3]; const auto z = atcoder::convolution(x, y); for (const usize i : rep(0, z.size())) { if (N >= i && A + i >= N) { ans += z[i] * util.inv_fact(N - i) * util.inv_fact(A + i - N); } } } ans *= util.fact(N) * util.fact(N); std::cout << ans.val() << eoln; } } // namespace n91 int main() { //* std::ios::sync_with_stdio(false); std::cin.tie(nullptr); //*/ std::cout << std::setprecision(20); n91::main_(); return 0; }