import java.util.*;

public class Main{

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  }

} import java.util.*; util.* java public class Main{

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  }

} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  } main {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int wa = a + b; wa a + b a b int sa = a - b; sa a - b a b int seki = a*b; seki a*b a b int max = wa; max wa int[] data = {wa,sa,seki}; data {wa,sa,seki} wa sa seki for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    } int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
      max = Math.max(data[i],max);
    } {
      max = Math.max(data[i],max);
    } max = Math.max(data[i],max) max Math.max(data[i],max) Math.max Math data[i] data i max System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main{

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  }

} public class Main{

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  }

} Main
import java.util.*;

public class Main{

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    int wa = a + b;
    int sa = a - b;
    int seki = a*b;
    int max = wa;

    int[] data = {wa,sa,seki};

    for(int i = 0;i < data.length;i++){
      max = Math.max(data[i],max);
    }

    System.out.println(max);

  }

}
