# Challenge 47 - Starter: duplicates slip through
register = ["Sam", "Alex", "Rory"]
name = input("Add a name: ").strip()
if name not in register:
    register.append(name)
    print(f"Added: {name}")
else:
    print("Duplicate name: not added.")
print("Register:", ", ".join(register))
