For this Question: Andy loves Xor. Dwight gives Andy an integer N and asks him to tell whether XOR of all the integers from 1 to N is even or odd. As Andy is busy flirting with Erin, help him solve this problem.Input contains a single integer N.

Constraints:
1 <= N <= 10^9Print "even" if XOR of all the integers from 1 to N is even and if it is odd print "odd".Sample Input 1
3

Sample Output 1
even

Explanation: Xor of 1, 2 and 3 is 0 which is even.

Sample Input 2
5

Sample Output 2
odd

Explanation: Xor of 1, 2, 3, 4 and 5 is 1 which is odd., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) {

					  try{
						  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
					  int input= Integer.parseInt(reader.readLine());
					  int result=1;
					  for(int i=2;i<=input;i++)
					  {
						  result = result^i;
					  }

					  if(result%2 == 0)
					  System.out.println("even");
					  else
					  System.out.println("odd");
					  }
					  catch(Exception e){
						  System.out.println("Something went wrong"+e);
					  }

	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?