package com.dw.googlecodejam;

import java.lang.*;
import java.util.*;
import java.io.*;

public class googlecodejam_2016_A1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        FileInputStream instream = null;
        PrintStream outstream = null;
        
        try{
            instream = new FileInputStream("1.txt");
            outstream = new PrintStream("1.out");
            System.setIn(instream);
            System.setOut(outstream);
        }
        catch(Exception e){
            System.err.println("Error Occurred");
        }

        Scanner in = new Scanner(System.in);
        int T = in.nextInt();

        for(;in.hasNext();){
            for(int j=0;j<T;j++){
            	
            	String wholeLine = in.nextLine();
            	String[] t = wholeLine.split(" ");
            	//Parse Integer.parse string to int or some other things to go
                System.out.println(in.nextInt() + " " + in.nextInt());
            }
        }

        String[] strings = { " Hello ", " This ", "is ", "Sorting ", "Example" };
        Arrays.sort(strings);

        for(int j=0;j<strings.length;j++)
        System.out.println(strings[j]);

        System.err.println("done.");
        return;

	}

}

@@ -345,16 +345,27 @@
 Stream(%22
+/Users/ewu/
 1.txt%22);
@@ -406,16 +406,27 @@
 Stream(%22
+/Users/ewu/
 1.out%22);
@@ -931,32 +931,34 @@
                 
+//
 System.out.print
@@ -1051,17 +1051,16 @@
 gs = %7B %22
- 
 Hello %22,
@@ -1061,17 +1061,16 @@
 llo %22, %22
- 
 This %22, 
@@ -1072,17 +1072,16 @@
 s %22, %22is
- 
 %22, %22Sort
@@ -1083,17 +1083,16 @@
 %22Sorting
- 
 %22, %22Exam

update google codejam