#include <bits/stdc++.h>
using namespace std;
constexpr int mod = 1000000007;
int pascal[5000][5000];
int pow3[5000];
int main() {
  pascal[0][0] = 1;
  for (int i = 1; i < 5000; i++) {
    pascal[i][0] = 1;
    for (int j = 1; j < i; j++)
      pascal[i][j] = (pascal[i - 1][j] + pascal[i - 1][j - 1]) % mod;
    pascal[i][i] = 1;
  }
  pow3[0] = 1;
  for (int i = 1; i < 5000; i++) pow3[i] = pow3[i - 1] * 3LL % mod;
  int n, m, k;
  scanf("%d %d %d", &n, &m, &k);
  int ans = 0;
  for (int i = 0; i <= m; i++)
    for (int j = 0; j <= k; j++) {
      ans += (long long)pascal[n - 1 + i + j][n - 1] * pascal[i + j][i] % mod *
             pow3[m + k - i - j] % mod;
      ans %= mod;
    }
  printf("%d\n", ans);
}
