#include using namespace std; int main() { int a,b,n; cin>>a>>b>>n; int put = 0,nr = 1; if(n==2) { cout<