s = io.read() t = io.read() n = io.read("*n") print(s .. string.rep("_" .. t, n))