def FindSameName(a):
    name_dict = {}
    for nme in a:
        if name in name_dict:
            name_dict[name] += 1
        else:
            name_dict[name] = 1
    result = set()
    for name in name_dict:
        if name_dict[name]>2:
            result.add(name)

    return result

name = ['tom', 'jerry' 'mike' 'tom']
print(FindSameName(name))

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: