I have a problem statement

Problem

Write a program to calculate the sum of 2 numbers and print the output.

Input

Line 1: An integer.

Line 2: An integer.

Output :The output consists of a single integer which corresponds to sum, followed by a new line

Sample Input I

```
3 
1 

```

Sample Output I

```
4 

```

Sample Input II

```
13 
10

```

Sample Output II

```
23

```

To which my solution is

```
import java.io.IOException;
import java.util.InputMismatchException;
import java.util.Scanner;

public class Add {

public static void main(String[] args)throws IOException
{
    int a=0, b=0, sum;
    Scanner sc=new Scanner(System.in);
    System.out.println("Enter the numbers to be summed");
    try{
        a=sc.nextInt();
        sc.nextLine();
        b=sc.nextInt();
    }
    catch(InputMismatchException e){
        System.out.println("Please enter an Integer number");
        e.printStackTrace();}
    catch(Exception e){System.out.println(e);}

    sum=a+b;

    System.out.println(sum);
    sc.close();
}

}

```

I'm supposed to submit it to an online directory, that I assume tries to execute the program automatically. And when I do, it tells me

Wrong Answer Almost there,think some more

I think pondering over it for an hour is more than enough before you decide to call in for reinforcement.