n,a,b,c=$<.map &:to_i p b ?[a+b,b+c,c+a].uniq.sort[-2]:"assert"