s,e,N = input().split() if(int(N) == 1): print(-1 if s != e else s) else: ans = s ans += "a" * (int(N)-2) ans += e print(ans)