import heapq
pqr = list(map(int,input().split()))
print(sum(heapq.nsmallest(2,pqr))) import heapq heapq pqr = list(map(int,input().split())) pqr list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split print(sum(heapq.nsmallest(2,pqr))) print sum(heapq.nsmallest(2,pqr)) sum heapq.nsmallest(2,pqr) heapq.nsmallest heapq nsmallest 2 pqr pqr = list(map(int,input().split())) list(map(int,input().split())) pqr
import heapq
pqr = list(map(int,input().split()))
print(sum(heapq.nsmallest(2,pqr)))
