Addition

Read two integers between -100,000 and 100,000 and print their sum.

Easy1MathImplementationNo attempts yetTime limit1sMemory limit512 MB

Problem

Read two integers aa and bb, then print a+ba+b.

Input and output in C

#include <stdio.h>
...
scanf("%d%d", &a, &b);
printf("%d\n", a + b);

Input and output in C++

#include <iostream>
...
cin >> a >> b;
cout << a + b << endl;

Input and output in Java

import java.util.Scanner;
...
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);

Input

The first line contains aa and bb, separated by one space. Both values are integers between -100,000 and 100,000.

Output

Print a+ba+b on the first line.