Problem:
Score : 100 points

Problem Statement

You are given two integers A and B.
Find the largest value among A+B, A-B and A \times B.

Constraints

-1000 \leq A,B \leq 1000

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the largest value among A+B, A-B and A \times B.

Sample Input 1

3 1

Sample Output 1

4

3+1=4, 3-1=2 and 3 \times 1=3. The largest among them is 4.

Sample Input 2

4 -2

Sample Output 2

6

The largest is 4 - (-2) = 6.

Sample Input 3

0 0

Sample Output 3

0

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Wrong Answer)

import java.util.Scanner;

class Main{
    public static void main(String args[]) {
        int n;
        String s;
        int[] maxV=new int[101];
        int max=1;
        int count=0;
        Scanner sc = new Scanner(System.in);


        n = sc.nextInt();


        s = sc.next();


        String[] abc={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
        if(2<=n&n<=100){
           for (int index = 1; index < s.length(); index ++) {
             count=0;
          String x = s.substring(0,index);
          String y = s.substring(index);
            for(int roop =0; roop<=25; roop ++){
              if(x.contains(abc[roop])&y.contains(abc[roop])){
                count++;
              }

            }
            maxV[index]=count;
             max = Math.max(max,maxV[index]);
        }


        System.out.println(max);

        }


    }
}