s, t, n = input().split() n=int(n) if n==1: print(-1) else: print(s, end="") for i in range(n-2): print("a",end="") print(t)