This is the problem statement.
Please solve .
Input Specification
The first line of input contains the integers and which are the integers to add.
Output Specification
The output contains . which is the sum of .
Sample Input
1 1
Sample Output
2
Sample Java Solution
import java.util.Scanner; //get Scanner
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in); //make Scanner
int a = sc.nextInt(); //get a
int b = sc.nextInt(); //get b
int c = a+b; //add them
System.out.println(c);
}
}
When writing in java, make sure to name your class Main
.
Do not include a package.
Sample Python Solution
a, b = map(int, input().split())
print(a + b)