```
class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
tmp = {}
res = []
for n in list(set(nums)):
tmp[n] = nums.count(n)
for k,v in tmp.iteritems():
if v > len(nums) / 3:
res.append(k)
return res
```