Published:
Updated:

https://codeforces.com/contest/4/problem/A


Solution

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Solution {
    static String solution(int input) {
        if (input == 2) {
            return "NO";
        }
        return (input % 2 == 0) ? "YES" : "NO";
    }
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        System.out.print(solution(Integer.parseInt(br.readLine())));
        br.close();
    }
}

Leave a comment