/**
 *
 * @author Damien Bell <SkyeShatter@gmail.com>
 */
import java.lang.Math;
import java.util.Scanner;
 class Jtutorial1 {
    public static void main(String args[]){
     Scanner input = new Scanner(System.in);
        // Declare a double, run some tests on it.
        // Is it even or odd?  Is it a perfect square?   Is it a whole number?
        // Is the number squared even?  
        
     
        double choice=0;
        
        System.out.println("Enter a value for the variable: ");
        choice = input.nextDouble();
        
        //even
        if((choice%2) < 1){
            System.out.println("The number " + choice + "  is even prior to the decimal point. ");
        }
        else{
            System.out.println("The number " + choice + "  is NOT even. ");
        }
        
        //perfect square
        if((Math.sqrt(choice)) == 0){
            System.out.println("The number " + choice + "  is a perfect square: ");
        }
        else{
            System.out.println("The number " + choice + " is NOT a perfect square: ");
        }
        
        if ((choice%1) == 0){
            System.out.println("The number " + choice + " is a whole number: ");
        }
        else {
             System.out.println("The number " + choice + " is NOT a whole number: ");
        }
        
        if((((Math.pow(choice, 2)))%2) == 0){
            System.out.println("The number " + choice + " squared is even: ");
        }
        else{
             System.out.println("The number " + choice + " squared is NOT even: ");
        }
        
    } //End main
} //End class
