#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> s >> e >> N; if(N==1){ cout << -1 << endl; return 0; } string x; x+=s; REP(i,N-2) x+=s; x+=e; cout << x << endl; return 0; }