From f1a031f2bc6ecc307e4e67a8a4b870ac9b595609 Mon Sep 17 00:00:00 2001 From: raj-humble <35659984+raj-humble@users.noreply.github.com> Date: Sun, 28 Oct 2018 17:22:25 +0530 Subject: [PATCH] Update 4A.java --- 4A.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/4A.java b/4A.java index 480bedc..34acefa 100644 --- a/4A.java +++ b/4A.java @@ -2,16 +2,19 @@ import java.lang.*; import java.io.*; - -public class Codechef -{ - public static void main (String[] args) throws java.lang.Exception - { +public class Codechef { + + public static void main (String[] args) throws java.lang.Exception { + Scanner scan = new Scanner(System.in); + int w = scan.nextInt(); + if(w ==2 || w % 2 ==1) - System.out.println("NO"); + System.out.println("NO"); else if(w % 2 == 0) - System.out.println("YES"); + System.out.println("YES"); + } -} \ No newline at end of file + +}