#include <bits/stdc++.h>
using namespace std;
int N, M, K;
signed long long mo = 1000000007;
signed long long combi(signed long long N_, signed long long C_) {
  const int NUM_ = 1000001;
  static signed long long fact[NUM_ + 1], factr[NUM_ + 1], inv[NUM_ + 1];
  if (fact[0] == 0) {
    inv[1] = fact[0] = factr[0] = 1;
    for (int i = 2; i <= NUM_; ++i) inv[i] = inv[mo % i] * (mo - mo / i) % mo;
    for (int i = 1; i <= NUM_; ++i)
      fact[i] = fact[i - 1] * i % mo, factr[i] = factr[i - 1] * inv[i] % mo;
  }
  if (C_ < 0 || C_ > N_) return 0;
  return factr[C_] * fact[N_] % mo * factr[N_ - C_] % mo;
}
signed long long modpow(signed long long a, signed long long n = mo - 2) {
  signed long long r = 1;
  while (n) r = r * ((n % 2) ? a : 1) % mo, a = a * a % mo, n >>= 1;
  return r;
}
void solve() {
  int i, j, k, l, r, x, y;
  string s;
  cin >> N >> M >> K;
  signed long long ret = 0;
  for (int i = N; i <= N + M + K; i++) {
    signed long long a = combi(i - 1, N - 1) * modpow(3, N + M + K - i) % mo;
    for (x = 0; x < (M + 1); x++) {
      y = i - N - x;
      if (y >= 0 && y <= K) ret += a * combi(i - N, x) % mo;
    }
  }
  cout << ret % mo << endl;
}
int main(int argc, char** argv) {
  string s;
  int i;
  if (argc == 1) ios::sync_with_stdio(false), cin.tie(0);
  for (i = 0; i < (argc - 1); i++) s += argv[i + 1], s += '\n';
  for (i = 0; i < (s.size()); i++) ungetc(s[s.size() - 1 - i], stdin);
  solve();
  return 0;
}
