#!/bin/bash
read a b
c=$(($a + $b))
d=$(($a * $b))
e=$(($a - $b))

if [ $c -gt $d -a $c -gt $e ]; then
	answer=$c
else if [ $d -gt $e ]; then
		answer=$d
        else answer=$e
fi

echo $answer
exit 0