# Input: First line is a list of names, second line is a greeting names = input().split() greeting = input() # Output: Greeting followed by each name for name in names: print(f"{greeting}, {name}")