def solution(k, tangerine):
tan_dict = {}
for tan in tangerine:
tan_dict[tan] = tan_dict.get(tan, 0) + 1
lst = sorted(tan_dict.items(), key = lambda x:-x[1])
answer = 0
cnt = 0
for key, val in lst:
cnt += val
answer += 1
if cnt>=k:
break
return answer