#create a program that will return the most ocurring element in a list

def get_most_ocurring_element(data):
    #convert the list to a set
    unique_set = set(data[:])
    #variabel to store the highest count
    highest_count = 0
    for i in unique_set:
        current_count = data.count(i)
        if current_count > highest_count:
            highest_count = current_count
            most_ocurring = i
        


    return most_ocurring

variable_container = (input('Enter the items of the list: '))
print(get_most_ocurring_element(variable_container.rsplit()))
