using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z { static void Main() => new K(); }
class K
{
	int F => int.Parse(Str);
	long FL => long.Parse(Str);
	int[] G => Strs.Select(int.Parse).ToArray();
	long[] GL => Strs.Select(long.Parse).ToArray();
	string Str => ReadLine();
	string[] Strs => Str.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
	const int MOD = 1000000007;
	public K()
	{
		SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
		Solve();
		Out.Flush();
	}
	(int a, int b) A(int x) => (x / 2, x + 1);
	int B(object x) => x is int a ? a : throw new Exception();
	string hoge;
	public string Name
	{
		get => hoge;
		set => hoge = value;
	}
	void Solve()
	{
		var w = F;
		var (a, _) = A(w);
		WriteLine(w > 2 && w % 2 == 0 ? "YES" : "NO");
		if (w < 0)
		{
			var b1 = 0b1111_0000;
			var s = Str;
			if (int.TryParse(s, out var c)) WriteLine(c + b1);
		}
	}
	class Q
	{
		int n;
		int this[int n] => 3;
		public Q(int x) => n = x;
	}
	static ref int Max(ref int x, ref int y)
	{
		if (x < y) return ref y;
		return ref x;
	}
}

using System;

 class Exercise11

{

     static void Main()

     {

          int w=Convert.ToInt32(Console.ReadLine());

    if(w%2==0&&w>2)

    {
        Console.WriteLine("YES");
    }

    else

    {
        Console.WriteLine("NO");
    }

     }

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int W = int.Parse(Console.ReadLine());
            if ((W%2) == 0 && W != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace CodeforcesCSharp {
	class Program {
		static void Main(string[] args) {
			int input = Convert.ToInt32(Console.ReadLine());
			if (input % 2 == 0 && input > 2) {
				Console.WriteLine("YES");
			} else {
				Console.WriteLine("NO");
			}
		}
	}
}

using System;

namespace Codeforces
{
    static class Program
    {
        static void Main(string[] args)
        {
            int weight = Convert.ToInt32(Console.ReadLine());
            if (weight <= 3)
            {
                Console.WriteLine("NO");
            }
            else
            {
                Console.WriteLine(weight % 2 == 0 ? "YES" : "NO");
            }
        }
    }
}

using System;
using System.Data.SqlTypes;
using System.Net.Http;

namespace codeForces
{
    class Program
    {
        static void Main()
        {
            int w = Convert.ToInt32(Console.ReadLine());

            if (w%2 == 0 && w != 2)
            {
                Console.Write("YES");
            }
            else
            {
                Console.Write("NO");
            }
        }
    }
}

using System;

namespace csharp_competitive
{
    class Program
    {
        static void Main(string[] args)
        {
            int input = Convert.ToInt32(Console.ReadLine());

            if((input % 2) == 0 && input > 2){
                Console.WriteLine("YES");
            }
            else{
                Console.WriteLine("NO");
            }
        }
    }
}

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            string result;

            a = Convert.ToInt32(Console.ReadLine());

            if (a >= 1 && a <= 100)
            {
                if (((a%2) == 0) && (a != 2))
                    result = "YES";
                else
                    result = "NO";
            }
            else
                return;

            Console.WriteLine(result);
        }
    }
}

using System;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int watermelonWeight = int.Parse(Console.ReadLine());

            bool isWatermelonDivided = false;

            for (int i = 0; i < watermelonWeight; i++)
            {
                for (int j = 0; j < watermelonWeight; j++)
                {
                    int firstPersonPart = i + 1;
                    int secondPersonPart = j + 1;

                    bool arePartsEqual = firstPersonPart + secondPersonPart == watermelonWeight;
                    bool arePartsEvenNumbers = (firstPersonPart % 2 == 0) && (secondPersonPart % 2 == 0);

                    if (arePartsEqual && arePartsEvenNumbers)
                    {
                        Console.WriteLine("YES");
                        isWatermelonDivided = true;

                        break;
                    }
                }

                if (isWatermelonDivided)
                {
                    break;
                }
            }

            if (!isWatermelonDivided)
            {
                Console.WriteLine("NO");

            }
        }
    }
}

using System;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            if (w % 2 != 1 & w!=2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }

}

using System;

namespace wattermalon
{
    class Program
    {
        static void Main(string[] args)
        {
            var w=Convert.ToInt32(Console.ReadLine());
            if(w!=2 && w%2==0){
                Console.WriteLine("YES");
            }
            else{
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
	class Program
	{
		static void Main(string[] args)
		{
			var a = Convert.ToInt32(Console.ReadLine());
			if(a%2==0&&a>2)
				Console.WriteLine("YES");
			else Console.WriteLine("NO");
		}
	}
}

using System;
public class Program
{
    static void Main(String[]Args)
    {
        int a = Convert.ToInt32(Console.ReadLine());
        if(a<=2)
        {
            Console.WriteLine("NO");
            return;
        }
        if(a%2==0)Console.Write("YES");
        else Console.WriteLine("NO");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

           double weight = double.Parse(Console.ReadLine());

            if (weight <= 100 && weight >= 1)
            {

                if (weight==2)
                {

                    Console.WriteLine("NO");
                }
                else if (weight % 2 == 0)
                {
                    Console.WriteLine("Yes");
                }
                else
                {
                    Console.WriteLine("No");
                }
            }

        }
    }
}

using System;

class Program
{
    static void Main()
    {
        int num = Convert.ToInt32(Console.ReadLine());
        string answer;
        if (num < 4)
            {
                answer = "No";
            } else {
                int shift = num >> 1;
                shift = shift << 1;
                answer = shift == num ? "Yes" : "No";

            }
        System.Console.WriteLine(answer);
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int i;
            i = int.Parse(Console.ReadLine());
            if (i <= 2)
            {
                Console.Write("NO\n");
                //Console.Read();
            }
            else
            {
                if (i % 2 == 0)
                {
                    Console.Write("YES\n");
                    //Console.Read();

                }
                else
                {
                    Console.Write("NO\n");
                    //Console.Read();
                }

            }
        }
    }
}

using System;

class TestClass
{
    static void Main(string[] args)
    {
        int num = Convert.ToInt32(Console.ReadLine());
        if (num < 4)
        {
            Console.WriteLine("NO");
        }
        else
        {
            if ((num - 2) % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace _4A
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());

            if (w == 2)
            {
                Console.WriteLine("NO");
            }
            else
            {
                if (w % 2 == 0)
                {
                    Console.WriteLine("YES");

                }
                else
                {
                    Console.WriteLine("NO");
                }
            }

        }
    }
}

using System;
using System.IO;

class Solution
{
 static string Even(int n)
 {
     string ans="NO";
     if(n%2==0&&n>2)
     {
         ans="YES";
     }
     return ans;
 }

  static void Main(string[] args) {
     l: int n=int.Parse(Console.ReadLine());

      if(n>=1&&n<=100)
      {
          string final=Even(n);
           Console.WriteLine(final);

      }
      else
      {
          goto l;
      }
  }
}

using System;

namespace Watermelon800
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            if (w % 2 == 0 && w != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace _4A
{

    class Program
    {

        static void Main()
        {

            string a;
            sbyte n;

            a = Console.ReadLine();
            n = Convert.ToSByte(a);

            if(n > 2 && n % 2 == 0)
            {

                Console.WriteLine("YES");

            }
            else
            {

                Console.WriteLine("NO");

            }

            Console.ReadLine();

        }

    }

}

using System;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            int w;

            w = int.Parse(Console.ReadLine());
            if (w >= 1 && w <= 100)
            {

                if (w % 2 == 0 && w != 2)
                {

                        Console.WriteLine("yes");
                }
                else
                    Console.WriteLine("no");
            }

        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {

            String str=Console.ReadLine();
            int n = int.Parse(str);

            if (  n%2==0 & n!=2 )
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    public class Program
    {
        static void Main(string[] args)
        {
            int i = 1;
            int j;
            bool cond = false;

            int w = int.Parse(Console.ReadLine());
            j = w - 1;

            while(i <= j)
            {

                if(i % 2 == 0 && j % 2 == 0)
                {
                    Console.Write("YES");
                    cond = true;
                    break;
                }
                i++;
                j--;
            }
            if (cond == false)
            {
                Console.Write("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
                if (w % 2 == 0 && w > 2)
                {
                    Console.Write("YES");
                }
                else
                {
                    Console.Write("NO");
                }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
          //  while (true)
          //  {
                Console.WriteLine(CheckEven(Convert.ToInt32(Console.ReadLine().ToString())));
            //}
        }

        private static string CheckEven(int x)
        {
            if (x < 4) return "NO";
            if (x%2==0)
            {
                return "YES";
            }
            else
            return "NO";
        }

    }
}

using System;
namespace TestFeature
{
    class MainApp
    {
        public static void Main()
        {
            var weight = int.Parse(Console.ReadLine());
            Console.WriteLine(weight > 3 && weight % 2 == 0 ? "YES" : "NO");
        }
    }
}

using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            var weight = int.Parse(Console.ReadLine());
            if (weight == 2)
                Console.WriteLine("NO");
            else
                Console.WriteLine(weight % 2 == 0 ? "YES" : "NO");
        }
    }
}

using System;

namespace WatermelonesCodForces
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            Console.WriteLine(GetAnswer(input));
        }

        public static string GetAnswer(string input)
        {
            int resonseInInt = int.Parse(input);

            return (resonseInInt <= 2 || resonseInInt % 2 != 0) ? "NO" : "YES";
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int g = new int();
            g = 0;
            g = Convert.ToInt32(Console.ReadLine());
            if ((g%2)==0 && g > 2)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Runtime.InteropServices;

namespace Watermelon {
    class Program {
        static void Main(string[] args) {
            string w = Console.ReadLine();
            try {
                int weight = Convert.ToInt32(w);
                if (weight > 2 && weight % 2 == 0) {
                    Console.WriteLine("YES");
                } else {
                    Console.WriteLine("NO");
                }
            } catch (Exception e) {

            }
        }
    }
}

using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());

            if (n > 2 && n % 2 == 0)
            {

                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");

            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {

            int w = int.Parse(Console.ReadLine());

                if (w % 2 == 0 && w > 2)
                {
                    Console.WriteLine("YES");
                }
               else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace A._watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int W;
            //Console.Write("Weight of the watermelon: ");
            W = int.Parse(Console.ReadLine());
            if (W>3 && W<101)
            {
                if (W % 2 == 0)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }

            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace sduhcguyasdc
{
	class Program
	{
		public static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());
			if(n>2 && n%2==0){
				Console.WriteLine("YES");
			}else{
				Console.WriteLine("NO");
			}
			//Console.ReadKey(true);
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            string x= Console.ReadLine();
            if ( int.Parse(x) % 2 == 0 && int.Parse(x) !=2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PST_1
{
    class Program
    {
        static void Main(string[] args)
        {
            double w = double.Parse(Console.ReadLine());
            if (w<=100 && w>=1)
            {
                if (w % 2 == 0 && w != 2)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            int n;
            n = (int)Convert.ToUInt32(Console.ReadLine());

            if (n % 2 == 0 && n > 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication22
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());

            string result = "NO";

            if (a % 2 == 0)
            {
                int a1 = a / 2;
                int a2 = a / 2;

                if (a1 % 2 == 0 && a2 % 2 == 0)
                {
                    result = "YES";
                }
                else
                {
                    a1++;
                    a2--;

                    if (a1 % 2 == 0 && a2 % 2 == 0 && a1 != 0 && a2 != 0)
                    {
                        result = "YES";
                    }
                }

            }
            Console.WriteLine(result);

        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int a1 = 0, a2 = 0;
            string result = "NO";
            if (a % 2 == 0 && a >= 2 && a <= 100) //если a mod 2 равна 0 и 2 больше или равно 2 и а меньше или равно 100
            {
                a1 = a / 2;
                a2 = a / 2;

                if (a1 % 2 == 0)
                {
                    result = "YES";
                }
                else
                {
                    a1 -= 1;
                    a2 += 1;

                    if (a1 % 2 == 0 && a2 % 2 == 0 && a1 != 0 && a2 != 0)
                    {
                        result = "YES";
                    }
                }

            }

        Console.WriteLine(result);

    }
    }

using System;

namespace CodeForce
{
    class Program
    {
        static void Main()
        {
            int a = int.Parse(Console.ReadLine());

            if(a % 2 == 0 && a != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

class A{
    static void Main(){
        int N = int.Parse(Console.ReadLine());
        string ans = "NO";

        for (int i = 1; i < N; i++){
            if ((N - i) % 2 == 0 && i % 2 == 0) ans = "YES";
        }
        Console.WriteLine(ans);
    }
}

using System;

namespace Codeforces
{
    class Codeforces
    {
        public static void Main(string[] args)
        {
            Console.Write(Run(int.Parse(Console.ReadLine())));
        }

        public static string Run(int w)
        {
            int i = 2;

            while (i <= w / 2)
            {
                if (i % 2 == 0 && (w - i) % 2 == 0)
                {
                    return "YES";
                }

                i += 1;
            }

            return "NO";
        }
    }
}

using System;

namespace CodeForce
{
    class Program
    {
        static void Main()
        {
            int a = int.Parse(Console.ReadLine());

            if(a % 2 == 0 && a != 2)
            {
                System.Console.WriteLine("YES");
            }
            else
            {
                System.Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace C_
{
    class Program
    {

        static void Main(string[] args)
        {
            int input = int.Parse(Console.ReadLine());
            string output;

                if(input > 0 & input < 101 & input%2 == 0 & input != 2)
                {
                    output = "YES";
                    Console.WriteLine(output);
                }
                else{
                    output = "NO";
                    Console.WriteLine(output);
                }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Watermelon
{
    class Program
    {
        static void BruteForce(int weight)
        {
            int counter = 0;

            if (weight % 2 != 0)
            {
                counter = 0;
            }
            else
            {
                for (int i = 2; i <= weight; i += 2)
                {
                    for (int j = i; j <= weight; j += 2)
                    {
                        if (i % 2 == 0 && j % 2 == 0 && i + j == weight)
                        {
                            counter++;

                        }
                    }
                }
            }

            if (counter > 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }

        static void Main(string[] args)
        {
            int weight = int.Parse(Console.ReadLine());

            BruteForce(weight);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = int.Parse(Console.ReadLine());
            if (weight==2)
            {
                Console.WriteLine("no");
            }
            else if (weight % 2 == 0)
            {
                Console.WriteLine("yes");

            }
            else
            {
                Console.WriteLine("no");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _4
{
    class Program
    {
        static void Main(string[] args)
        {
            var w = int.Parse(Console.ReadLine());
            bool odd = ((w) % 2) == 1;
            if (w == 1)
            {
                odd = true;
            }
            else if (w == 2)
            {
                odd = true;
            }

            if (odd)
            {
                Console.WriteLine("NO");
            }
            else
            {
                Console.WriteLine("YES");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var readLine = Console.ReadLine();

            var result = Calculate(readLine);

            Console.WriteLine(result);
        }

        private static string Calculate(string input)
        {
            var totalWeight = Int32.Parse(input);

            for (var i = 2; i <= totalWeight - 2; i += 2)
            {
                var rest = totalWeight - i;

                if (rest%2 == 0 && rest > 0)
                {
                    return "YES";
                }
            }

            return "NO";
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace watermelon1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w;

            w = Convert.ToInt32(Console.ReadLine());

            if ((w % 2 == 0) && (w >= 4)&& (w<=100))
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;

namespace Watermelon
{
    class Program
    {
        static void Main()
        {
            int w = Convert.ToInt32(Console.ReadLine());
            if (w >= 1 && w <= 100)
            {
                bool result = EvenFractions(w);
                if(result == true)
                    Console.WriteLine("Yes");
                else
                    Console.WriteLine("No");
            }
        }

        public static bool EvenFractions(int num)
        {
            bool rtn = false;

            List<int> intList = new List<int>();

            for (int i = 1; i < num; i++)
            {
                if (i % 2 == 0)
                {
                    intList.Add(i);
                }
            }

            for (int j = 0; j < intList.Count; j++)
            {
                for (int k = 0; k < intList.Count; k++)
                {
                    if (num == intList[j] + intList[k])
                    {
                        rtn = true;
                    }
                    break;
                }
            }
            return rtn;
        }
    }
}

using System;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());
            Console.WriteLine((x > 2 && x % 2 < 1) ? "YES" : "NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeForcecTableOfVasya
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = int.Parse(Console.ReadLine());
            string result=null;
            if (weight % 2 == 0 && weight > 3)
            {
                if ((weight / 2) % 2 == 0 || (weight-2)%2 ==0) result = "YES";
                else result = "NO";
            }
            else result = "NO";
            Console.WriteLine(result);

        }

    }
}

using System;

namespace CodeForces
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = int.Parse(Console.ReadLine());
            if (weight % 2 == 1)
            {
                Console.WriteLine("NO");
                return;
            }

            int leftPart = weight / 2;
            int rightPart = weight - leftPart;
            if (leftPart % 2 == 0 && rightPart % 2 == 0)
            {
                Console.WriteLine("YES");
                return;
            } else
            {
                if ((leftPart - 1) % 2 == 0 && (rightPart + 1) % 2 == 0 && leftPart - 1 != 0)
                {
                    Console.WriteLine("YES");
                } else {
                    Console.WriteLine("NO");
                }
            }
        }
    }
}

using System;

namespace CS_4A
{
    class Program
    {
        static void Main()
        {
            var i = int.Parse(Console.ReadLine());
            Console.WriteLine(i < 4 || (i & 1) == 1 ? "No" : "Yes");
        }
    }
}

using System;

namespace CodeForces
{
    class Program
    {
        static void Main()
        {
            var input = int.Parse(Console.ReadLine());
	    	Console.WriteLine(input > 3 && input % 2 == 0 ? "YES" : "NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = (Convert.ToInt32(Console.ReadLine()));

            Console.WriteLine(w > 2 && w % 2 == 0 ? "Yes":"NO");
        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            if (w >= 4 && w % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace first
{
    class Program
    {
        static void Main(string[] args)
        {

            int w = int.Parse(Console.ReadLine());

                if ((w % 2 == 0) && (w!=2))

                    Console.WriteLine("YES");
               else
                    Console.WriteLine("NO");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = (Convert.ToInt32(Console.ReadLine()));

            Console.WriteLine(w > 2 && w % 2 == 0 ? "Yes":"NO");
        }
    }

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace test1
{
    class Program
    {
        static void Main(string[] args)
        {
            var w = int.Parse(Console.ReadLine());

            if (w < 4)
            {
                Console.WriteLine("NO");
                Console.ReadLine();
                return;
            }

            w = w - 2;

            if (w%2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

            Console.ReadLine();

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CleanCode
{
    class Program
    {
        static void Main(string[] args)
        {
            double w = double.Parse(Console.ReadLine());
            if (w >= 1 && w <= 100)
                if(w==1)
                    Console.WriteLine("NO");
                else if ((((w > 2) || w==1) ? (((w % 2) % 2) == 0) : ((w % 2) == 1)))
                    Console.WriteLine("YES");
                else
                    Console.WriteLine("NO");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            a = Convert.ToInt32(Console.ReadLine());
            if (a%2 != 0)
            {
                Console.WriteLine("NO");
            }
            else if (a == 2)
            {
                Console.WriteLine("NO");
            }
            else if (a%2 == 0)
            {

                if ((a-2)%2 == 0)
                {
                    Console.WriteLine("YES");
                }
                else if ((a-4)%2 == 0)
                {
                    Console.WriteLine("YES");
                }
                else if ((a-6)%2 == 0)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
            }
            Console.ReadLine();

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication20
{
    class Program
    {
        static void Main(string[] args)
        {
           int x = int.Parse(Console.ReadLine());
         if(x==2)
         {
             Console.WriteLine("NO");
         }
        else if(x%2==0)
            {

                Console.WriteLine("YES");
            }
            else
                Console.WriteLine("NO");

        }
    }
}

using System;

namespace SYYYNS
{
    class Program
    {
        static void Main(string[] args)
        {
            long n;
            n = Convert.ToInt64(Console.ReadLine());

            if (n % 2 == 0 && n > 2)
            {
                Console.WriteLine("YES\n");
            }
            else
            {
                Console.WriteLine("No\n");
            }
        }
    }
}

using System;

namespace Melon
{
    class Program
    {
        static void Main(string[] args)
        {

            int input = Convert.ToInt32(Console.ReadLine());

            if (input % 2 == 0 && input > 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication49
{
    class Program
    {
        static void Main(string[] args)
        {
            int num1 = int.Parse(Console.ReadLine());

            if (num1%2==0 && num1 > 2 )
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }

    }
}

using System;

class Program
{
    static void Main(string[] args)
    {
        int x = int.Parse(Console.ReadLine());
        if (x == 2)
        {
            Console.WriteLine("NO");
        }
        else if (x % 2 == 0)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());

            if (w % 2 == 0 && w != 2)
                Console.Write("YES");
            else Console.Write("NO");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var sandiaKilos = Convert.ToInt32(Console.ReadLine());
            var nNumero1 = 0;
            var nNumero2 = 0;
            bool encontrado = false;
            while (nNumero1 < sandiaKilos)
            {
                nNumero1 += 1;
                while (nNumero2 < sandiaKilos)
                {
                    nNumero2 += 1;
                    if (nNumero1 + nNumero2 == sandiaKilos && nNumero1 % 2 == 0 && nNumero2 % 2 == 0)
                    {
                        encontrado = true;
                        break;
                    }
                }
                if (encontrado == true)
                {
                    break;
                }
                nNumero2 = 0;
            }

            if (encontrado == true)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication13
{
    class Program
    {
        static void Main(string[] args)
        {
            int W = int.Parse(Console.ReadLine());
            if (W % 2 == 1)
            {
                Console.WriteLine("NO");
            }
            if (W % 2 == 0)
            {
                if (W == 2)
                {
                    Console.WriteLine("NO");
                }

                else
                {
                    Console.WriteLine("YES");
                }
            }
            Console.ReadLine();
        }
    }
}

using System;

namespace Watermelon{
	class DivideWatermelon{
		public static void Main(string[] args){

			float n=float.Parse(Console.ReadLine());
			if(n>=1 && n<=100){
				if(n % 2 ==0  && n/2>1){
					Console.WriteLine("Yes");
				}
				else{
					Console.WriteLine("No");
				}
			}
			else
				Console.WriteLine("No");
			Console.ReadLine();
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            int w = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(w % 2 == 0 && w != 2 ? "YES" : "NO");
        }
    }
}

using System;

    class Program
    {

        static void Main(string[] args)
        {

            int w = int.Parse(Console.ReadLine());
            if (w %2 == 0&&w>=4)
            Console.WriteLine("Yes");
            else
            Console.WriteLine("NO");

        }
    }

using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            if (w % 2 == 0 && w > 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tram1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            if (n%2 == 0 && n != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

public class Solution
{
    public static void Main(string[] args)
    {
        new Solution().Run();
    }

    public void Run()
    {
        try
        {
            Init();
            Solve();
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }

        Console.ReadLine();
    }

    private void Init()
    {
        inputBuffer = new string[0];
        inputBufferIndex = 0;
    }

    private string[] inputBuffer;
    private int inputBufferIndex;

    private string ReadLine() { return Console.ReadLine(); }

    private string ReadString()
    {
        while (inputBufferIndex == inputBuffer.Length)
        {
            inputBuffer = ReadLine().Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
            inputBufferIndex = 0;
        }

        return inputBuffer[inputBufferIndex++];
    }

    private int ReadInt() { return Int32.Parse(ReadString()); }

    private long ReadLong() { return Int64.Parse(ReadString()); }

    private double ReadDouble() { return Double.Parse(ReadString()); }

    private void Solve()
    {
        int weight = ReadInt();

        bool can = (weight > 2 && weight % 2 == 0);
        Console.WriteLine(can ? "YES" : "NO");
    }
}

using System;

namespace CodeForces.Task4A
{
    class Program
	{
		static void Main(string[] args)
		{
			var task = new Task();
		}
	}

    public interface IGeneralInterface
	{
		void Input();

		void Output();
	}

    public class Diapason
	{
		private long _number;
		public long Number
		{
			get => _number;
			set => _number = value;
		}

		private int _min;
		public int MIN
		{
			get => _min;
			set => _min = value;
		}

		private long _max;
		public long MAX
		{
			get => _max;
			set => _max = value;
		}

		public bool InRange()
		{
			if (_min <= _number && _number <= _max)
				return true;

			return default;
		}
    }

    public class Task : IGeneralInterface
	{
		private Diapason _diapason = new Diapason();
		private string _str;
		private const int MIN = 1;
		private const int MAX = 100;
		private const string YES = "YES";
		private const string NO = "NO";
		private int _number;

		public Task()
		{
			Input();
			Output();
		}

		public void Input() => InputData();

		private void InputData()
		{
			_str = Console.ReadLine();
			if (int.TryParse(_str, out int result))
			{
				_diapason.Number = result;
				_diapason.MIN = MIN;
				_diapason.MAX = MAX;
				if (_diapason.InRange())
					_number = result;
			}
		}

		public void Output()
		{
			if(_number % 2 == 0 && _number > 2)
				Console.WriteLine(YES);
			else
				Console.WriteLine(NO);
		}
	}
}

using System;

public class Solution
{
    public static void Main(string[] args)
    {
        new Solution().Run();
    }

    public void Run()
    {
        try
        {
            Init();
            Solve();
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            throw new Exception();
        }
    }

    private void Init()
    {
        inputBuffer = new string[0];
        inputBufferIndex = 0;
    }

    private string[] inputBuffer;
    private int inputBufferIndex;

    private string ReadLine() { return Console.ReadLine(); }

    private string ReadString()
    {
        while (inputBufferIndex == inputBuffer.Length)
        {
            inputBuffer = ReadLine().Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
            inputBufferIndex = 0;
        }

        return inputBuffer[inputBufferIndex++];
    }

    private int ReadInt() { return Int32.Parse(ReadString()); }

    private long ReadLong() { return Int64.Parse(ReadString()); }

    private double ReadDouble() { return Double.Parse(ReadString()); }

    private void Solve()
    {
        int weight = ReadInt();

        bool can = (weight > 2 && weight % 2 == 0);
        Console.WriteLine(can ? "YES" : "NO");
    }
}

using System;

namespace OlympSolves
{
    class Program
    {
        static void Main(string[] args)
        {
            short weight = short.Parse(Console.ReadLine());
            if (weight % 2 == 0 && weight != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z { static void Main() => new K(); }
class K
{
	int F => int.Parse(Str);
	long FL => long.Parse(Str);
	int[] G => Strs.Select(int.Parse).ToArray();
	long[] GL => Strs.Select(long.Parse).ToArray();
	string Str => ReadLine();
	string[] Strs => Str.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
	const int MOD = 1000000007;
	public K()
	{
		SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
		Solve();
		Out.Flush();
	}
	void Solve()
	{
		var w = F;
		WriteLine(w > 2 && w % 2 == 0 ? "YES" : "NO");
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace for_codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            Console.WriteLine((((n % 2) == 0) && (n != 2)) ? "YES" : "NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace coding
{
    class Program
    {
        static void Main(string[] args)
        {
            // Change the appereance of code

            /*Console.Title = "My code";
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WindowHeight = 40;*/

            int num = Convert.ToInt32(Console.ReadLine());

            if ( (num-2) % 2 == 0 && num != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
            // Wait before closing
           // Console.ReadKey();

        }
    }
}

using System;
using System.Linq;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = int.Parse(Console.ReadLine());
            Console.WriteLine((i % 2 == 0) && i > 2 ? "YES" : "NO");
        }
    }
}

using System;

namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {

         int  weight = Convert.ToInt32(Console.ReadLine());

          if (weight%2==0 && weight!=2)
          {
              Console.WriteLine("YES");
          }
          else
          {
              Console.WriteLine("NO");
          }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication6
{
    class Program
    {
        static void Main(string[] args)
        {
            string weight = Console.ReadLine();
            int w = Convert.ToInt16 (weight);
            if ( 1 <= w && w <= 100) {
                if ( w == 2 ) {
                    Console.WriteLine("NO");
                }
            else  {
                Console.WriteLine(w % 2 == 0 ? "YES" : "NO");
            }
            }
        }
    }
}

using System;

namespace арбуз
{
    class Program
    {
        static void Main(string[] args)
        {
            int Weight = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(Weight > 2 && Weight % 2 == 0 ? "YES" : "NO");
        }
    }
}

using System;
using System.IO;

namespace Program
{
    public static class Program
    {
        private readonly static string _yes = "YES";
        private readonly static string _no = "NO";

        public static void Main(string[] args)
        {
            var input = Convert.ToInt32(Console.ReadLine());

            if (input == 2)
            {
                Console.WriteLine(_no);
                return;
            }

            switch (input % 2)
            {
                case 0:
                    Console.WriteLine(_yes);
                    break;
                case 1:
                    Console.WriteLine(_no);
                    break;
            }
        }
    }
}

using System;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = 0;
            int.TryParse(Console.ReadLine(), out w);
            if (w % 2 == 0)
            {
                if (w == 2){
                    System.Console.WriteLine("NO");

                } else {
                    System.Console.WriteLine("YES");
                }
            } else {
                System.Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Convert.ToInt32(Console.ReadLine());
            var a = input - 2;
            var result = (a > 0 && a % 2 == 0) ? "YES" : "NO";
            Console.WriteLine(result);
        }
    }
}

using System;

class Program
{
    static void Main()
    {
        int w=Convert.ToInt32(Console.ReadLine());
        if (w%2==1)
        {
            Console.WriteLine("NO");
        }
        else
        {
            if ((w/2)%2==0)
            {
                Console.WriteLine("YES");
            }
            else if ((((w-2)/2)%2==0)&&((w-2)!=0))
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            string x = Console.ReadLine();
            int w = Convert.ToInt16(x);
            bool z;
            if (w % 2 == 0)
            {
                z = true;
            }
            else
            {
                z = false;
            }
            string ans = "YES";
            if (z == false)
            {
                ans = "NO";
            }
            Console.WriteLine(ans);

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace msp_watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w;
            w = int.Parse(Console.ReadLine());
            if(w%2!=0)
            {
                Console.WriteLine("NO");
            }
            else { Console.WriteLine("YES"); }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication26
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter The number you need found it : ");
            int num = int.Parse(Console.ReadLine());
            int[] x = {1,2,3,4,5,6,7,9,10,12,15,17,18,19};

            BinarySearch(x, num);

        }
        static void BinarySearch(int[]x,int y)
        {
            int start = 0;
            int end = x.Length - 1;
            int mid ;

            while (start <= end)
            {
                mid = (start+end)/2;

                if (y==x[mid])
                {
                    Console.WriteLine("The number is found in index "+ mid);
                    break;
                }
                else if(y < x[mid])
                {
                    end = mid - 1;
                }
                else if (y > x[mid])
                {
                    start = mid + 1;
                }
                else
                    Console.WriteLine("not found");
            }
        }
    }
}

using System;

namespace Melon
{
    class Program
    {
        static void Main(string[] args)
        {
            int numero = 5;
            string comprueba = "YES";
            string comprueba2 = "NO";

            if(numero % 2 == 0)
            {
                Console.WriteLine(comprueba);
            }
            else
            {
                Console.WriteLine(comprueba2);
            }

        }
    }
}

using System;

class Program
{
    static void Main(string[] args)
    {
        int n = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine(n % 2 == 0 ? ((n / 2) % 2 == 0 ? "YES" : "NO") : "NO");

    }
}

using System;
namespace HelloWorld
{
    class Hello
    {

        static void Main(string[] args)
        {   int w;
            Console.WriteLine("Enter a number between 1 and 100: ");
            w = Convert.ToInt32(Console.ReadLine());
                if (w % 2 == 0)

                    Console.WriteLine("YES");

                else

                    Console.WriteLine("NO");

        }
    }

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WayTooLongWords
{
    class Program
    {
        static void Main(string[] args)
        {
            Int32 a;

            a = Convert.ToInt32(Console.ReadLine());

            if (a > 1 && a < 100)
            {
                if ((a % 2) == 0)
                {
                    Console.Write("YES");
                }

                else
                {
                    Console.Write("NO");
                }
            }

            else
            {
                return;
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication13
{
    class Program
    {
        static void Main(string[] args)
        {
            int W = int.Parse(Console.ReadLine());
            if (W % 2 == 1)
            {
                Console.WriteLine("NO");
            }
            if (W == 2)
            {
                Console.WriteLine("NO");
            }
            if (W == 4)
            {
                Console.WriteLine("YES");
            }
            Console.ReadLine();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());

            if (w % 2 == 0 || w == 2)
                Console.Write("YES");
            else Console.Write("NO");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace p11
{
    class Program
    {
        static void Main(string[] args)
        {
            int w,cont =0;
            bool find = false;
            w = Convert.ToInt32(Console.ReadLine());

            for( int i =0 ; i<w ; i++)
            {

                if ((cont + i) % 2 == 0 && (w - i) % 2 == 0 && (cont + i) != 0 && (w - i) != 0)
                {
                    Console.WriteLine("YES");
                    i = w;
                    find = true;
                }
                if (find == false)
                {

                    Console.WriteLine("NO");
                }

            }

        }

    }
}

using System;

namespace CodeForces
{
    class A4
    {
        static void Main()
        {
            byte weigh = Byte.Parse(Console.ReadLine());

            if(((float)weigh/2)%2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = Convert.ToInt32(Console.Read());

            if (  a <= 2 )
            {
                Console.WriteLine("NO");
            }
            else if (a % 2 == 0)
            {

                    Console.WriteLine("YES");
            }

                else
                {
                    Console.WriteLine("NO");
                }
            }
        }
    }

using System;

namespace арбуз
{
    class Program
    {
        static void Main(string[] args)
        {
            int Weight = Convert.ToInt32(Console.ReadLine());
            if (Weight % 2 == 0)
                Console.WriteLine("YES");
            else Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter the weight of the watermelon :");
            double x = Convert.ToDouble(Console.ReadLine());
            if (x % 2 == 0 && x>=1)
            {
                Console.WriteLine("yes");
            }
            else
            {
                Console.WriteLine("no");
            }

        }
    }
}

using System;
using System.IO;

class Solution
{
 static string Even(int n)
 {
     string ans="NO";
     if(n%2==0)
     {
         ans="YES";
     }
     return ans;
 }

  static void Main(string[] args) {
     l: int n=int.Parse(Console.ReadLine());

      if(n>=1&&n<=100)
      {
          string final=Even(n);
           Console.WriteLine(final);

      }
      else
      {
          goto l;
      }
  }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = 0;
            weight = Convert.ToInt32(Console.ReadLine());

            if (weight % 2 == 0)
            {
                Console.WriteLine("YES");
            } else {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace Codeforces
{
    class Codeforces
    {
        public static void Main(string[] args)
        {
            Console.Write(DivideWatermelon(int.Parse(Console.ReadLine())));
        }

        public static string DivideWatermelon(int w)
        {
            return w % 2 == 0 ? "YES" : "NO";
        }
    }
}

using System;

namespace CodeKata
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            Console.WriteLine(CodeForceWaterMelon(int.Parse(input)));
        }
        private static string CodeForceWaterMelon(int w)
        {
            string result;
            try {
                if (w < 1 || w > 100)
                {
                    throw new Exception("More than 100 or Less Than 1");

                }
                else
                {
                    w = w / 2;

                    if (w % 2 == 1)
                    { //odd Number
                        result = "NO";
                    }
                    else
                    { //even
                        result = "YES";
                    }
                }

            }
            catch (Exception e)
            {
                return e.Message;
            }
            return result;
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.Read());
            if (w <= 2)
            {
                Console.Write("NO");
            }
            else if (w % 2 == 0)
            {
                Console.Write("YES");
            }
            else
            {
                Console.Write("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _4A
{
    class Program
    {
        static void Main(string[] args)
        {
            int parameter = int.Parse(Console.ReadLine());

            if (parameter >= 1 && parameter <= 100)
            {
                if ((parameter % 2) == 0)
                    Console.WriteLine("Yes");

                else
                    Console.WriteLine("No");

                Console.ReadLine();
            }
        }
    }
}

using System;

namespace AdhocProblems
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter a watermelon weight:");
            double w = Convert.ToDouble(Console.ReadLine()); //watermelon in kilograms
            if (w < 1 && w > 100)
            {
                Console.Write("NO");
            }

            if (w <= 2)
            {
                Console.Write("NO");
            }

            if (w <= 2)
            {
                Console.Write("NO");
            }
            if (w % 2 == 0)
            {
                Console.Write("YES");
            }
            else
            {
                Console.Write("NO");
            }
        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if ( a == 2)
            {
                Console.WriteLine("NO");
            }

            if ((a % 4 == 0) || ((a-4) % 2 != 0))
            {
                Console.WriteLine("YES");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wotermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = 8;
            if (w % 2 == 0)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            long lKilo = 0;

            String sLine = Console.ReadLine();
            String[] sLines = sLine.Split(' ');

            lKilo = Convert.ToInt64(sLines[0]);

            if (lKilo/2 == lKilo/2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

            Console.ReadLine();
        }
    }
}

using System;

namespace Watermelon800
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            //Console.WriteLine(((w % 2) == 0) && (w / 2) % 2 == 0);
            Console.WriteLine(true);
        }
    }
}

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = 0;
        sa:
            Console.WriteLine("enter number from 1 to 100");
            w = int.Parse(Console.ReadLine());
            if (w>1&&w<100)
            {

                if (w % 2 == 0 && (w / 2) % 2 == 0)
                    Console.WriteLine("yes");
                else
                    Console.WriteLine("no");
            }
            else
            {
                goto sa;
            }

        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Skrotowanie
{
    class Program
    {
        static void Main(string[] args)
        {
            var waga = Convert.ToUInt32(Console.ReadLine());

            if (waga%2 == 0 && waga%2 > 1)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;

namespace CodeKata
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            Console.WriteLine(CodeForceWaterMelon(int.Parse(input)));
        }
        private static string CodeForceWaterMelon(int w)
        {
            string result;
            try {
                if (w < 1 || w > 100)
                {
                    throw new Exception("More than 100 or Less Than 1");

                }
                else
                {
                    if (w % 2 == 1)
                    { //odd Number
                        result = "NO";
                    }
                    else
                    {
                        result = "YES";
                    }
                }

            }
            catch (Exception e)
            {
                return e.Message;
            }
            return result;
        }
    }
}

using System;
using System.Collections.Generic;

namespace Codeforces
{
  class Program
  {
    private static string IsDivisible(int weight)
    {
    if(weight % 2 == 0 ||  weight==2)
    {
        return "YES";
    }
    else
    {
        return "NO";
    }
    }

    static void Main(string[] args)
    {
        int weight= getKg();
        string result = IsDivisible(weight);
        print(result);
    }

    private static void print(Object o)
    {
            Console.WriteLine(o);
    }
    private static int getKg()
    {
            return (int)Console.Read();
    }

  }
}

using System;

namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Convert.ToInt32(Console.ReadLine());
            var a = input / 2;
            var b = input - a;
            var result = a == b && a % 2 == 0 ? "YES" : "NO";
            Console.WriteLine(result);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication16
{
    class Program
    {
      //developed by ayman yousef
      //problem solving
      //4A
      //waatermeloon
        static void Main(string[] args)
        {
            Console.WriteLine("pls enter the weight of watermeloon ");
            double w = double.Parse(Console.ReadLine());

            if(w == 2 )
            {
                Console.WriteLine("No");
            }
            else if(w % 2 == 0)
            {
                Console.WriteLine("Yes");

            }
            else
            {
                Console.WriteLine("No");
            }

        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if (( a == 2))
            {
                Console.WriteLine("NO");
            }

            if (( a % 4 == 0))
            {
                Console.WriteLine("YES");
            }

            else if  (((a-1) % 2) == 0)
            {
                Console.WriteLine("NO");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A2problem1
{
    class Program
    {
        static void Main(string[] args)
        {

            int weight=int.Parse(Console.ReadLine());
            if (weight == 2)
                Console.WriteLine("NO");
            if (weight % 2 == 0)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

    class Program
    {
        static void Main(string[] args)
        {
            int a=int.Parse(Console.ReadLine());
            if (a % 2 == 2) { Console.Write("Yes"); }
            else if (a % 2 == 1) { Console.Write("No"); }
            else Console.Write("No");

            Console.ReadLine();
        }
    }

using System;
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse( Console.ReadLine());
            string res = ((n - 2 ) %2== 0 && (n - 2 ) %2 > 0) ? "YES" :  "NO";
            Console.WriteLine(res);
            Console.ReadLine();

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
            if(w % 2 == 0)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program0{

        static void Main(string[] args)
        {
            int m = 2;
            int k = 2;

            if (m+k*2 == 8 )
            {
                Console.WriteLine("YES");
            }

            else {
                Console.WriteLine("NO");
            }

            Console.ReadLine();
        }
    }
}

using System;

class Program
{
    static void Main()
    {
        int i = int.Parse(Console.ReadLine());

        if (i % 2 == 0)
        {
            Console.WriteLine("YES");
        }

        else
        {
            Console.WriteLine("NO");
        }
    }
}

using System;
class Exercise11
{
    static void Main()
    {
        int w = int.Parse(Console.ReadLine());
            if ((w%2 == 1) && (w<101 && 100>0))
            {
                Console.WriteLine("NO");
            }
            else
            {
                Console.WriteLine("YES");
            }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Sayi Giriniz");
            int sayi =Convert.ToInt32(Console.ReadLine());

            if(sayi<=3)
            {
                Console.WriteLine("NO");
            }
            else{
                if (sayi % 2 == 0)
                {
                    Console.WriteLine("YES");

                }
                else Console.WriteLine("NO");
            }

            Console.ReadLine();

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            if (N % 4 == 0)
                Console.Write("YES");
            else
                Console.Write("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Watermelon
{
    class Program
    {
        static void BruteForce(int weight)
        {
            int counter = 0;

            for (int i = 1; i <= weight; i++)
            {
                for (int j = i; j <= weight; j++)
                {
                    if (i % 2 == 0 && j % 2 == 0 && i + j == weight)
                    {
                        counter++;
                    }
                }
            }

            if (counter > 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }

        static void Main(string[] args)
        {
            int weight = 8;

            BruteForce(weight);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            EvenParts(w);

        }
        static void EvenParts(int w)
        {
            if (w!=0)
            {

                if (w % 2 == 0 && (w / 2) % 2 == 0)
                {

                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");

                }
            }
            else
            Console.WriteLine("NO");

        }

    }
}

using System;

namespace A._watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int W;
            //Console.Write("Weight of the watermelon: ");
            W = int.Parse(Console.ReadLine());
            if (W>1 && W<101)
            {
                if (W % 2 == 0)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }

            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace novosoft
{
    class Program
    {
        static void Main(string[] args)
        {
            int x =Int32.Parse(Console.ReadLine());

            if (x>=1 && x<=100  )
            {
                if (x % 2 == 0 && x>= 2)
                {
                    Console.WriteLine("YES");
                }
                else
                    Console.WriteLine("NO");
            }
            Console.ReadLine();
         }
    }
}

using System;

namespace problem4a
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = 0;
            w = Console.Read();
            if( w % 2==0)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyApp
{
    class Program
    {
        static void Main()
        {
            int x = 3;

            x = Convert.ToInt32(Console.ReadLine());
            if (x % 4 == 0)
            {
                Console.WriteLine("YES");

            }else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        private static string _no = "NO";
        private static string _yes = "YES";

        static void Main(string[] args)
        {
            var readLine = Console.ReadLine();

            var result = Calculate(readLine);

            Console.WriteLine(result);
        }

        private static string Calculate(string input)
        {
            var totalWeight = Int32.Parse(input);

            if (totalWeight < 0)
            {
                return _no;
            }

            for (var i = 2; i < totalWeight - 2; i += 2)
            {
                var rest = totalWeight - i;

                if (rest%2 == 0 && rest > 0)
                {
                    return _yes;
                }
            }

            return _no;
        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if (( a == 2))
            {
                Console.WriteLine("NO");
            }

            if (( a % 4 == 0))
            {
                Console.WriteLine("YES");
            }

            else if  ((a % 2) == 1)
            {
                Console.WriteLine("NO");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if ( ( (a+4)/2 % 2 == 0))
            {
                Console.WriteLine("YES");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace Codeforces
{
    class Codeforces
    {
        public static void Main(string[] args)
        {
            Console.Write(Run(int.Parse(Console.ReadLine())));
        }

        public static string Run(int w)
        {
            int i = 2;

            while (i < w / 2)
            {
                if (i % 2 == 0 && (w - i) % 2 == 0)
                {
                    return "YES";
                }

                i += 1;
            }

            return "NO";
        }
    }
}

using System;

namespace DANYAVINOVAT
{
    class Main_of_main
    {
        static void Main(string[] args)
        {

            int n = Convert.ToInt32(Console.ReadLine());
            if(n%2==0)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;

namespace ConsoleApp
{
    class Program
    {
        static void Main()
        {
            string s = Console.ReadLine();
            int p = Convert.ToInt32(s);
            if (p % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if (( a == 2))
            {
                Console.WriteLine("NO");
            }

            if (( a % 4 == 0) || (a > 2 ))
            {
                Console.WriteLine("YES");
            }

            else if  (((a-1) % 2) == 0)
            {
                Console.WriteLine("NO");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;
class Program
{
    static int Main()
    {
        int w = Int32.Parse(Console.ReadLine());
        if (w % 2 == 0)
        {
            int a, b;
            a = w / 2;
            b = w / 2;
            if (a % 2 == 0 && b % 2 == 0) Console.WriteLine("YES");
            else
                if (a % 2 == 1 && b % 2 == 1) { a += 1; ;b-= 1; Console.WriteLine("Yes"); }
            else Console.WriteLine("NO");
        }
        else Console.WriteLine("NO");
        return 0;
    }
}

using System;

namespace CodeForces
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			int w = Math.Max (0, Math.Min (Convert.ToInt32 (Console.ReadLine ()), 100));

			if (w % 2 == 0)
				Console.WriteLine ("YES");
			else
				Console.WriteLine ("No");
		}
	}
}

using System;

namespace TestThings
{
    class Program
    {
        static void Main(string[] args)
        {
            var w = float.Parse(Console.ReadLine());
            if (w < 1 || w > 100)
            {
                Console.WriteLine("NO");
                return;
            }

            if ((w/2) % 2 == 0)
            {
                Console.WriteLine("YES");
                return;
            }
            else
            {
                Console.WriteLine("NO");
                return;
            }
        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if (( a == 2))
            {
                Console.WriteLine("NO");
            }

            if (( a % 2 == 1))
            {
                Console.WriteLine("NO");
            }

            else
            {
                Console.WriteLine("YES");
            }

        }
    }
}

using System;

namespace CodeForce1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(((char)Console.Read()).ToString());
            if (w % 2 == 0 && w != 2)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeForces
{
    class Program
    {
        static void Main(string[] args)
        {

            int n = int.Parse(Console.ReadLine());
            if (((n % 2 ==0) && (n/2)%2 == 0)|| n==2) Console.WriteLine("YES");
            else Console.WriteLine("NO");

        }
    }
}

namespace CodeWars
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine(DivideWatermelon.Divide(5));
        }
    }

    public static class DivideWatermelon
    {
        public static string Divide(int w)
        {
            return (w % 2 == 0) ? "YES" : "NO";
        }
    }
}

using System;

namespace code_Forces_A._watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();

            if(Int32.TryParse(input, out int num) && num >= 1 && num <= 100)
            {
                int numDivided = num % 4; // divide by 2 and result needs to be even.
                if (numDivided == 0)
                {
                    Console.WriteLine("Yes {0}", numDivided);
                }
                else
                {
                    Console.WriteLine("No {0}", numDivided);
                }

            }
            else
            {
            Console.WriteLine(num.ToString());
            }

        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
            int x ;
            x = w / 2;

                if (x % 2 == 0 )
                {
                    Console.WriteLine("yes");
                }
                else
                {
                    Console.WriteLine("no");
                }

            }

        }
    }

using System;
class Program
{
	public static void Main() {
		var n = int.Parse(Console.ReadLine());
		for(var i = 1; i < n/2; i++){
			var b = n - i;
			var a = n - b;
			if(a % 2 == 0 && b % 2 == 0) {
				Console.WriteLine("YES");
				return;
			}
		}
		Console.WriteLine("NO");
	}
}
// Program.Main();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication26
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());
            if (x % 2 == 0)
            {

                int n = x / 2;
                if (n % 2 == 0)
                {
                    Console.WriteLine("yes");

                }
            }
            Console.WriteLine("no");

        }
    }
}

using System;
    class Program
    {
        static void Main()
        {
            byte watermelon;
            watermelon = byte.Parse(Console.ReadLine());
            if (watermelon <= 100 && watermelon >= 1)
            {
                if (watermelon % 2 == 0)
                    Console.Write("yes");
                else
                    Console.Write("no");
            }
            else
                Console.Write("err");
        }
    }

using System;

namespace o
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            //if w can be divided into to even piles

            if(CanBeDividedInTwoEvenParts(w))
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
            //15
            // 6 / 3 4
            //50
            //24 26
        }

        static bool CanBeDividedInTwoEvenParts(int w)
        {
            if (w % 2 == 0)
                return true;

            //count from one end to the other
            for(int i = 1; i < w; i++)
            {
                if (w - i % 2 == 0 && i % 2 == 0)
                    return true;
            }

            return false;
        }
    }
}

using System;
namespace _4A
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
            if (w % 2 == 0)
            {
                if (w != 2)
                    Console.WriteLine("YES");
                else
                {
                    Console.WriteLine("NO");
                }
            }
        }
    }
}

using System;

namespace Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int watermelon = Console.Read();
            Console.Write(watermelon % 2 == 0 ? "YES" : "NO");
        }
    }
}

using System;

namespace TestWaterMelonCodeForces
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            int w;
            Int32.TryParse(input, out w);

            Console.WriteLine(WaterMelon(w));
        }

        private static string WaterMelon(int w)
        {

            if (w % 2 != 0) return $"NO";

            float k;
            k = w % 2;

            if (k % 2 != 0) return $"NO";

            if (k % 1 == 0)
            {
                return $"YES";
            }
            else return $"NO";
        }
    }
}

using System;

namespace sduhcguyasdc
{
	class Program
	{
		public static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());
			if(n>0){
				Console.WriteLine("YES");
			}else{
				Console.WriteLine("NO");
			}
			//Console.ReadKey(true);
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int pices=0;
            if( pices >= 1 && pices<=100)
            {
                if(pices %2==0)
                {
                    Console.WriteLine("Yes");
                }
                Console.WriteLine("No");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int g = new int();
            g = Convert.ToInt32(Console.ReadLine());
            if ((g%2)==0 && g >= 2)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int a;
            a = 8;
            a = int.Parse (Console.ReadLine());

            if (( a == 2))
            {
                Console.WriteLine("NO");
            }

            if (( a/2 % 2 == 0))
            {
                Console.WriteLine("YES");
            }

            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}

using System;

namespace Arbuz
{
    class Program
    {
        static void Main(string[] args)
        {

            int w = Console.Read();
            if (w >= 4 && w % 2 == 0 && w <= 100)
            {
                    Console.WriteLine("YES");
            }
            else
            {
                if (w >= 4 && w % 10 == 0)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }

            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wotermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
            if (w % 2 == 0)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}

using System;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int kilo;

            kilo = Convert.ToInt32(Console.ReadLine());

            if (kilo>=0 && kilo<=100 && kilo/2==0)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WaterMelon
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("");
            int w = int.Parse(Console.ReadLine());
            if (w%2==0 && w>1 && w<100)
            {
                Console.Write("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CFtest
{
    class Program
    {
        static void Main(string[] args)
        {  int w = int.Parse(Console.ReadLine());
            if (2 <= w && w <= 100 && w % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            else { Console.WriteLine("NO"); }
        }
    }
}

using System;

namespace watermilon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Console.Read();

            if (w > 3 && w < 101 )

            {
                if (w % 2 == 0)
                {
Console.Write("YES");
                }

            }
            else
            {
                Console.Write("NO");
            }
        }
    }
}

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            string result;

            a = Console.Read();

            if (a >= 1 && a <= 100)
            {
                if (((a%2) == 0) && (a != 2))
                    result = "YES";
                else
                    result = "NO";
            }
            else
                return;

            Console.WriteLine(result);
        }
    }
}

using System;

namespace _4A
{
    class Program
    {
        static void Main()
        {

            double a;

            a = (double)Console.Read();

            if(a == 2)
            {
                Console.WriteLine("NO");
            }
            else if(a % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}

using System;

namespace _4A
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());
            if (w % 2 == 0)
            {
                if (w != 2)
                    Console.WriteLine("YES");
                else
                {
                    Console.WriteLine("NO");
                }
            }
        }
    }
}

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            string result;

            a = Console.Read();

            if (a >= 1 && a <= 100)
            {
                if ((a%2) == 0 && (a / 2)%2 == 0)
                    result = "YES";
                else
                    result = "NO";
            }
            else
                return;

            Console.WriteLine(result);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A2problem1
{
    class Program
    {
        static void Main(string[] args)
        {

            int weight=int.Parse(Console.ReadLine());

            if (weight % 2 == 0||weight!=2)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = int.Parse(Console.ReadLine());

                if (w % 2 == 0)
                {
                    Console.WriteLine("yes");
                }
                else
                {
                    Console.WriteLine("no");
                }

            }

        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            int x =Convert.ToInt32( Console.ReadLine());
            if (x % 2 == 0)
                Console.WriteLine("YES");
            else if (x==2)
                  Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }

            }

        }

using System;

namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = int.Parse(Console.ReadLine());
            if(input % 4 == 0) System.Console.WriteLine("YES");
            else System.Console.WriteLine("NO");
        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            if (n % 2 == 0)
            {
                int n2 = n / 2;
                if (n2 % 2 == 0) Console.WriteLine("YES");
            }
            else {
                Console.WriteLine("NO");
            }
        }
    }

class Program
    {
        static void Main(string[] args)
        {
            int w;
            w = int.Parse(System.Console.ReadLine());
            int a = w / 2;

            if (a != 0) {
            for (int i = 1; i < w; i++)
            {
                if ((i % 2) == 0 && (w - i) % 2 == 0)
                {
                    System.Console.WriteLine("YES");
                        i = w;

                }

            }
                             }

            else
             System.Console.WriteLine("NO");
        }
}

using System;

namespace AdhocProblems
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter a watermelon weight:");
            double w = Convert.ToDouble(Console.ReadLine());
            if (w < 1 && w > 100)
            {
                Console.Write("NO");
            }

            if (w <= 2)
            {
                Console.Write("NO");
            }

            if (w <= 2)
            {
                Console.Write("NO");
            }
            if (w % 2 == 0)
            {
                Console.Write("YES");
            }
            else
            {
                Console.Write("NO");
            }
        }
    }
}

using System;

class Program
{
    static void Main(string[] args)
    {
        int w = int.Parse(Console.ReadLine());
        Console.WriteLine(w % 2 == 0 ? "YES" : "NO");
    }
}

using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());
            if (x < 100 & x > 1)
            {
                if (x % 2 == 0 & x!=2)
                {

                        Console.WriteLine("yes");

                }
                else
                {
                    Console.WriteLine("no");
                }
            }
            else
            {
                Console.WriteLine("no");
            }

        }
    }
}

using System;
class Program
{
    static void Main()
    {
        int w;
      w=Int32.Parse(Console.ReadLine());                 if(w % 2==0)
            Console.Write("YES");
        else
            Console.Write("NO");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.WebSockets;
using System.Runtime.InteropServices;

class Program
{
    static void Main()
    {
        int input = Int32.Parse(Console.ReadLine());

        if ((input % 2) == 0)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }

    }
}

using System;

class A{
    static void Main(){
        int N = int.Parse(Console.ReadLine());
        string ans = "NO";
        for (int i = 2; i < N; i+=2){
            if (N / i % 2 == 0) ans = "YES";
        }
        Console.WriteLine(ans);
    }
}

using System;

namespace Watermelon800
{
    class Program
    {
        static void Main(string[] args)
        {
            int w = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(((w % 2) == 0) && (w / 2) % 2 == 0);
        }
    }
}

using System;

namespace SingleLineInput
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine();
            var inputN = int.Parse(input);
            Console.WriteLine(inputN % 2 == 0 ? "YES" : "NO");
        }
    }
}