import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] l = br.readLine().split(" ");
    int a = Integer.valueOf(l[0]);
    int b = Integer.valueOf(l[1]);
    
    int add = a + b;
    int sub = a - b;
    int multi = a * b;
    
    int ret = add;
    if (ret < sub) {
      ret = sub;
    }
    if (ret < multi) {
      ret = multi;
    }
    System.out.printf("%d\n", ret);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] l = br.readLine().split(" ");
    int a = Integer.valueOf(l[0]);
    int b = Integer.valueOf(l[1]);
    
    int add = a + b;
    int sub = a - b;
    int multi = a * b;
    
    int ret = add;
    if (ret < sub) {
      ret = sub;
    }
    if (ret < multi) {
      ret = multi;
    }
    System.out.printf("%d\n", ret);
  }
} Main public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] l = br.readLine().split(" ");
    int a = Integer.valueOf(l[0]);
    int b = Integer.valueOf(l[1]);
    
    int add = a + b;
    int sub = a - b;
    int multi = a * b;
    
    int ret = add;
    if (ret < sub) {
      ret = sub;
    }
    if (ret < multi) {
      ret = multi;
    }
    System.out.printf("%d\n", ret);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] l = br.readLine().split(" ");
    int a = Integer.valueOf(l[0]);
    int b = Integer.valueOf(l[1]);
    
    int add = a + b;
    int sub = a - b;
    int multi = a * b;
    
    int ret = add;
    if (ret < sub) {
      ret = sub;
    }
    if (ret < multi) {
      ret = multi;
    }
    System.out.printf("%d\n", ret);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] l = br.readLine().split(" "); l br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.valueOf(l[0]); a Integer.valueOf(l[0]) Integer.valueOf Integer l[0] l 0 int b = Integer.valueOf(l[1]); b Integer.valueOf(l[1]) Integer.valueOf Integer l[1] l 1 int add = a + b; add a + b a b int sub = a - b; sub a - b a b int multi = a * b; multi a * b a b int ret = add; ret add if (ret < sub) {
      ret = sub;
    } ret < sub ret sub {
      ret = sub;
    } ret = sub ret sub if (ret < multi) {
      ret = multi;
    } ret < multi ret multi {
      ret = multi;
    } ret = multi ret multi System.out.printf("%d\n", ret) System.out.printf System.out System System.out "%d\n" ret String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] l = br.readLine().split(" ");
    int a = Integer.valueOf(l[0]);
    int b = Integer.valueOf(l[1]);
    
    int add = a + b;
    int sub = a - b;
    int multi = a * b;
    
    int ret = add;
    if (ret < sub) {
      ret = sub;
    }
    if (ret < multi) {
      ret = multi;
    }
    System.out.printf("%d\n", ret);
  }
}