#include using namespace std; long long a,b,n,nr,p,i,j,m; int main() { ifstream f ("a.in"); ofstream g ("a.out"); cin>>a>>b>>n; if(n==2) { cout<