#!/usr/bin/env python3

import heapq

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

_list = heapq.nsmallest(2, P)

print(_list[0] + _list[1]) import heapq heapq P = list(map(int, input().split())) P list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split _list = heapq.nsmallest(2, P) _list heapq.nsmallest(2, P) heapq.nsmallest heapq nsmallest 2 P print(_list[0] + _list[1]) print _list[0] + _list[1] _list[0] _list 0 _list[1] _list 1 P = list(map(int, input().split())) list(map(int, input().split())) P _list = heapq.nsmallest(2, P) heapq.nsmallest(2, P) _list
#!/usr/bin/env python3

import heapq

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

_list = heapq.nsmallest(2, P)

print(_list[0] + _list[1])