def s() n = gets.to_i a = gets if a.count(" ") > 0 return "assert" end a = a.to_i b, c = gets.to_i, gets.to_i return [a+b,b+c,c+a].sort![1] end puts s()