name = input("What is your name? ") times = int(input("How many times? ")) print(" ".join([name] * times))