1. Problem 문제 확인하기 2. Solution (Python, memory: 36352KB, time: 56ms) n = int(input()) town = list(map(int, input().split())) print(sum(town) - max(town))