Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
169 B
20
Indexable
Never
lst = map(int, input().split())
lst = sorted(lst)
d = 0
for i in range(len(lst)-1):
    if lst[i] != lst[i+1]:
        d+=lst[i]

d+=lst[-1]
print(lst)
print(d)