```
class Solution(object):
def majorityElement(self, nums):
res=[]
for i in set(nums):
if(nums.count(i)>len(nums)/3):
res.append(i)
return res
"""
:type nums: List[int]
:rtype: List[int]
"""
```