#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; } char c; REP(i,26){ char d='a'+i; if(d!=s && d!=e){ c=d; break; } } string x; x+=s; REP(i,N-2) x+=c; x+=e; cout << x << endl; return 0; }