System.in.eachLine{a=it.split()*.toLong() println a.sum()>a.max()*2?1:0}