s, e, N = input().split() N = int(N) if N <= 1: print(-1) else: print(s + 'x'*(N-2) + e)