import strscans let (_, a, b, o, w) = stdin.readAll.scanTuple"$i $i $i $i" echo max(a, b) + o + w