main=interact$show.f.map read.words;f[a,b]=a+b+(max 0$abs(a-b)-1)