#include <iostream>
#define mod 1000000007
using namespace std;
int a, b, c, p, q, r;
int power(int x, int y) {
int ret = 1;
for (int i = 30; i >= 0; i--) {
ret = 1LL * ret * ret % mod;
if (y & (1 << i)) ret = 1LL * ret * x % mod;
}
return ret;
}
int inv(int x) {
return power(x, mod - 2);
}
int main() {
cin >> a >> b >> c; p = 1, q = 1;
for (int i = 0; i < a; i++) p = 1LL * p * b % mod;
for (int i = a - 1; i >= 0; i--) {
p = 1LL * p * inv(b) % mod;
r = (r + 1LL * p * q) % mod;
q = 1LL * q * inv(a - i) % mod;
q = 1LL * q * (a + c - i - 1) % mod;
}
cout << r << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIG1vZCAxMDAwMDAwMDA3CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBhLCBiLCBjLCBwLCBxLCByOwppbnQgcG93ZXIoaW50IHgsIGludCB5KSB7CglpbnQgcmV0ID0gMTsKCWZvciAoaW50IGkgPSAzMDsgaSA+PSAwOyBpLS0pIHsKCQlyZXQgPSAxTEwgKiByZXQgKiByZXQgJSBtb2Q7CgkJaWYgKHkgJiAoMSA8PCBpKSkgcmV0ID0gMUxMICogcmV0ICogeCAlIG1vZDsKCX0KCXJldHVybiByZXQ7Cn0KaW50IGludihpbnQgeCkgewoJcmV0dXJuIHBvd2VyKHgsIG1vZCAtIDIpOwp9CmludCBtYWluKCkgewoJY2luID4+IGEgPj4gYiA+PiBjOyBwID0gMSwgcSA9IDE7Cglmb3IgKGludCBpID0gMDsgaSA8IGE7IGkrKykgcCA9IDFMTCAqIHAgKiBiICUgbW9kOwoJZm9yIChpbnQgaSA9IGEgLSAxOyBpID49IDA7IGktLSkgewoJCXAgPSAxTEwgKiBwICogaW52KGIpICUgbW9kOwoJCXIgPSAociArIDFMTCAqIHAgKiBxKSAlIG1vZDsKCQlxID0gMUxMICogcSAqIGludihhIC0gaSkgJSBtb2Q7CgkJcSA9IDFMTCAqIHEgKiAoYSArIGMgLSBpIC0gMSkgJSBtb2Q7Cgl9Cgljb3V0IDw8IHIgPDwgZW5kbDsKCXJldHVybiAwOwp9