A,B = gets.split.map(&:to_i)
sum = A+B
dif = A-B
pro = A*B
if sum > dif
    if sum > pro
        puts sum
    else 
        puts pro
    end
else
    if dif > pro
        puts dif
    else
        puts pro
    end
end
