import sys
import heapq

array_pqr = list(map(int,input().split()))

if not ( 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 and 1 <= array_pqr[2] <= 100 ): sys.exit()

print(sum(heapq.nsmallest(2,array_pqr))) import sys sys import heapq heapq array_pqr = list(map(int,input().split())) array_pqr list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if not ( 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 and 1 <= array_pqr[2] <= 100 ): sys.exit() not ( 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 and 1 <= array_pqr[2] <= 100 ) 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 and 1 <= array_pqr[2] <= 100 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 1 <= array_pqr[0] <= 100 1 <= array_pqr[0] 1 array_pqr[0] array_pqr 0 100 1 <= array_pqr[1] <= 100 1 <= array_pqr[1] 1 array_pqr[1] array_pqr 1 100 1 <= array_pqr[2] <= 100 1 <= array_pqr[2] 1 array_pqr[2] array_pqr 2 100 print(sum(heapq.nsmallest(2,array_pqr))) print sum(heapq.nsmallest(2,array_pqr)) sum heapq.nsmallest(2,array_pqr) heapq.nsmallest heapq nsmallest 2 array_pqr array_pqr = list(map(int,input().split())) list(map(int,input().split())) array_pqr
import sys
import heapq

array_pqr = list(map(int,input().split()))

if not ( 1 <= array_pqr[0] <= 100 and 1 <= array_pqr[1] <= 100 and 1 <= array_pqr[2] <= 100 ): sys.exit()

print(sum(heapq.nsmallest(2,array_pqr)))