Run ID:84545

提交时间:2024-07-16 09:58:38

n = int(input()) a = list(map(int,input().split())) b = [x for x in a if x != max(a)] print(sum(b))