# Arup Guha
# 11/9/2020
# Solution to COP 2930 Program 10 Part A

# Get both last names.
last1 = input("What is the first spouse's last name?\n")
last2 = input("What is the second spouse's last name?\n")

# First half lengths as designated by the problem.
halfLen1 = (len(last1)+1)//2
halfLen2 = (len(last2)+1)//2

# Ta da, just slice appropriately!
print("Your children will have the last name "+last1[:halfLen1]+last2[halfLen2:]+"-"+last2[:halfLen2]+last1[halfLen1:]+".")

