Python помогите пожалуйста

По дате
По рейтингу
12
import collections
print(int(input()) - collections.Counter(input().split()).most_common(1)[0][1])
в нейронку закинь в чем проблема
n = int(input())
nums = list(map(int, input().split()))
count = [0, 0, 0]
for x in nums:
count[x-1] += 1
most_common = max(range(3), key=lambda x: count[x]) + 1
changes = sum(count) - max(count)
print(changes)
Больше по теме