#include <bits/stdc++.h>
long long pw3[10101];
long long binom[2020][2020];
long long calc(int a, int b, int c) {
  if (a == 0) return pw3[b + c];
  long long ans = 0;
  for (int bb = 0; bb <= b; bb++) {
    for (int cc = 0; cc <= c; cc++) {
      long long hoge =
          (binom[(b - bb) + (c - cc)][a - 1] * binom[c - cc][b - bb]) %
          1000000007LL;
      ans += (hoge * pw3[bb + cc]) % 1000000007LL;
      ans %= 1000000007LL;
    }
  }
  return ans;
}
int main() {
  pw3[0] = 1;
  for (int i = 1; i <= 10000; i++) pw3[i] = (pw3[i - 1] * 3) % 1000000007LL;
  for (int i = 0; i <= 2000; i++)
    for (int j = 0; j <= 2000; j++)
      binom[i][j] = (i == 0 || j == 0
                         ? 1
                         : (binom[i - 1][j] + binom[i][j - 1]) % 1000000007LL);
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  printf("%lld\n", calc(a, b, c));
}
