text1 = input() text2 = input() text3 = input() separator = input() end_text = input() print(text1, text2, text3, sep=separator, end=end_text)