let s, e, n = stdin.ReadLine().Split() |> fun xs -> xs.[0], xs.[1], int xs.[2] if s = e && n = 1 then s elif n < 2 then "-1" else let x = "x" |> String.replicate (n - 2) s + x + e |> printfn "%s"