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

// The main method must be in a class named "Main".
public class Main {
    public static void main(String[] args) {
      Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        System.out.println( IsEven(n) );
                                            }
        public static boolean IsEven(int n)
            {
           /*     if (n%2==0)
                   { return true ; }
                   else
                   {   return false; }  */
            return((n%2==0)? true : false);
            }
       
   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: