class Solution:
    def solve(self, nums):
        # Write your code here
        votes = [0]*(max(nums)+1)
        length = len(nums)
        for i in nums:
            votes[i] += 1
        r = []
        for n in range(len(votes)):
            if votes[n] > length//3:
                r.append(n)
            
        return r
                

050a0f2ac4e52712d2396d080c8985ba4b8d0800
<mask token>

class Solution:
    <mask token>

class Solution:

    def solve(self, nums):
        votes = [0] * (max(nums) + 1)
        length = len(nums)
        for i in nums:
            votes[i] += 1
        r = []
        for n in range(len(votes)):
            if votes[n] > length // 3:
                r.append(n)
        return r

class Solution:
    def solve(self, nums):
        # Write your code here
        votes = [0]*(max(nums)+1)
        length = len(nums)
        for i in nums:
            votes[i] += 1
        r = []
        for n in range(len(votes)):
            if votes[n] > length//3:
                r.append(n)
            
        return r
                
