#import <Foundation/Foundation.h>
#include <stdio.h>
int main() {
  
  int i, j;
  scanf("%d %d", &i, &j);
  
  int sum = i + j;
  int sub = i - j;
  int mul = i * j;
  int result = MAX(sum, sub);
  result = MAX(result, mul);
  
  printf("%d", result);
  
}