a, b, c = input().split() c = int(c) if c == 1: print(-1) else: print(a+('a'*(c-2))+b)