l1 = ["Sujan", "Subodh", "Saugat"]
l2 = input("Enter the name: ")

if(l2 in l1):
    print("Name is in the list")
else:
    print("Name is not in the list")

# to find whether the name is in the list or not