import java.util.*;publicclassMain{
publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);while(sc.hasNext()){
int a = sc.nextInt();int b = sc.nextInt();
System.out.println(a+b);}}}
2.
import java.util.Scanner;publicclassMain{
publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);while(sc.hasNext()){
int t = sc.nextInt();for(int i =0; i < t; i++){
int a = sc.nextInt();int b = sc.nextInt();
System.out.println(a+b);}}}}
3.
import java.util.*;publicclassMain{
publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);while(sc.hasNext()){
int a = sc.nextInt();int b = sc.nextInt();if(a==0&& b==0)return;
System.out.println(a+b);}}}
4.
import java.util.*;publicclassMain{
publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);while(sc.hasNext()){
int t = sc.nextInt();int sum=0;if(t==0)return;for(int i =0; i < t; i++){
sum += sc.nextInt