1 2 8
37
#include<bits/stdc++.h>
using namespace std;
long long a[60], b[60];
int main(){
int x, y, z;
cin >> x >> y >> z;
for(int i = 1;i <= z+1;i++){
a[i] = 1;
}
for(int i = x+1;i <= z+1;i++){
a[i] = a[i-1] + b[i-2];
b[i] = a[i-x] * y;
}
cout << a[z+1];
return 0;
}