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

namespace Solution
{
    class Program
    {

        static void Main(string[] args)
        {
            //A435();

            var input = new InputPair<string>(Console.ReadLine());
            var b435 = new B435(input);
            Console.WriteLine(b435.Process());

            Console.ReadLine();
            Console.ReadLine();
        }

        private static void A435()
        {
            var firstRow = new InputPair<int>(Console.ReadLine());
            var secdRow = new InputList<int>(Console.ReadLine());

            var n = firstRow.Pair.Item1;
            var m = firstRow.Pair.Item2;

            var busNumber = 0;

            for (int i = 0; i < n; i++)
            {
                var total = secdRow.Items.ElementAt(i);

                var j = i;
                while (total < m)
                {
                    j++;
                    total += secdRow.Items.ElementAt(j);
                    if (total <= m)
                    {
                        i++;
                    }
                }
                busNumber += 1;
            }

            Console.WriteLine(busNumber);

            Console.ReadLine();
            Console.ReadLine();
        }

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

namespace Solution
{
    public class B435
    {
        private readonly InputPair<string> _firstRow;

        public B435(InputPair<string> firstRow)
        {
            _firstRow = firstRow;
        }

        public string Process()
        {
            var itemArray = _firstRow.Pair.Item1.ToCharArray();
            var totalSwap = int.Parse(_firstRow.Pair.Item2);

            for (int i = 1; i < itemArray.Length; i++)
            {
                var currentItem = itemArray[i];
                for (int j = totalSwap; j > 0 && totalSwap > 0; j--)
                {
                    var swapToIndex = i - j;
                    if (swapToIndex < 0) continue;

                    var swapToItem = itemArray[swapToIndex];
                    if (currentItem > swapToItem)
                    {
                        itemArray = Shift(itemArray, i, swapToIndex);

                        totalSwap -= j;
                        break;
                    }
                }

                if (totalSwap == 0) break;
            }

            return new string(itemArray);
        }

        public char[] Shift(char[] array, int fromIndex, int toIndex)
        {
            var shifItem = array[fromIndex];
            for (int i = fromIndex; i > toIndex; i--)
                array[i] = array[i - 1];

            array[toIndex] = shifItem;

            return array;
        }
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Helpers
{
    public class InputPair<T>
    {
        private readonly string _line;
        public Tuple<T,T> Pair;

        public InputPair(string line)
        {
            _line = line;
            //Items = new Tuple<T, T>(null,null);
            Process();
        }

        private void Process()
        {
            if (string.IsNullOrWhiteSpace(_line)) return;

            var items = _line.Split();
            Pair = new Tuple<T, T>(ConvertType(items[0]), ConvertType(items[1]));
        }

        private T ConvertType(string input)
        {
            return (T)Convert.ChangeType(input, typeof(T));
        }
    }
}


using System;
using System.Linq;
using Helpers;

namespace Solution
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            //A435();

            var input = new InputPair<string>(Console.ReadLine());
            var b435 = new B435(input);
            Console.WriteLine(b435.Process());

            Console.ReadLine();
            Console.ReadLine();
        }

        private static void A435()
        {
            var firstRow = new InputPair<int>(Console.ReadLine());
            var secdRow = new InputList<int>(Console.ReadLine());

            int n = firstRow.Pair.Item1;
            int m = firstRow.Pair.Item2;

            int busNumber = 0;

            for (int i = 0; i < n; i++)
            {
                int total = secdRow.Items.ElementAt(i);

                int j = i;
                while (total < m)
                {
                    j++;
                    total += secdRow.Items.ElementAt(j);
                    if (total <= m)
                    {
                        i++;
                    }
                }
                busNumber += 1;
            }

            Console.WriteLine(busNumber);

            Console.ReadLine();
            Console.ReadLine();
        }
    }
}

namespace Solution
{
    public class B435
    {
        private readonly InputPair<string> _firstRow;

        public B435(InputPair<string> firstRow)
        {
            _firstRow = firstRow;
        }

        public string Process()
        {
            char[] itemArray = _firstRow.Pair.Item1.ToCharArray();
            int totalSwap = int.Parse(_firstRow.Pair.Item2);

            for (int i = 1; i < itemArray.Length; i++)
            {
                char currentItem = itemArray[i];
                for (int j = totalSwap; j > 0 && totalSwap > 0; j--)
                {
                    int swapToIndex = i - j;
                    if (swapToIndex < 0) continue;

                    char swapToItem = itemArray[swapToIndex];
                    if (currentItem > swapToItem)
                    {
                        itemArray = Shift(itemArray, i, swapToIndex);

                        totalSwap -= j;
                        break;
                    }
                }

                if (totalSwap == 0) break;
            }

            return new string(itemArray);
        }

        public char[] Shift(char[] array, int fromIndex, int toIndex)
        {
            char shifItem = array[fromIndex];
            for (int i = fromIndex; i > toIndex; i--)
                array[i] = array[i - 1];

            array[toIndex] = shifItem;

            return array;
        }
    }
}
namespace Helpers
{
    public class InputPair<T>
    {
        private readonly string _line;
        public Tuple<T, T> Pair;

        public InputPair(string line)
        {
            _line = line;
            //Items = new Tuple<T, T>(null,null);
            Process();
        }

        private void Process()
        {
            if (string.IsNullOrWhiteSpace(_line)) return;

            string[] items = _line.Split();
            Pair = new Tuple<T, T>(ConvertType(items[0]), ConvertType(items[1]));
        }

        private T ConvertType(string input)
        {
            return (T) Convert.ChangeType(input, typeof (T));
        }
    }
}


using System;
using System.Linq;
using Helpers;

namespace Solution
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            //A435();

            var input = new InputPair<string>(Console.ReadLine());
            var b435 = new B435(input);
            Console.WriteLine(b435.Process());

            Console.ReadLine();
            Console.ReadLine();
        }

        private static void A435()
        {
            var firstRow = new InputPair<int>(Console.ReadLine());
            var secdRow = new InputList<int>(Console.ReadLine());

            int n = firstRow.Pair.Item1;
            int m = firstRow.Pair.Item2;

            int busNumber = 0;

            for (int i = 0; i < n; i++)
            {
                int total = secdRow.Items.ElementAt(i);

                int j = i;
                while (total < m)
                {
                    j++;
                    total += secdRow.Items.ElementAt(j);
                    if (total <= m)
                    {
                        i++;
                    }
                }
                busNumber += 1;
            }

            Console.WriteLine(busNumber);

            Console.ReadLine();
            Console.ReadLine();
        }
    }
}

namespace Helpers
{
    public class InputPair<T>
    {
        private readonly string _line;
        public Tuple<T, T> Pair;

        public InputPair(string line)
        {
            _line = line;
            //Items = new Tuple<T, T>(null,null);
            Process();
        }

        private void Process()
        {
            if (string.IsNullOrWhiteSpace(_line)) return;

            string[] items = _line.Split();
            Pair = new Tuple<T, T>(ConvertType(items[0]), ConvertType(items[1]));
        }

        private T ConvertType(string input)
        {
            return (T) Convert.ChangeType(input, typeof (T));
        }
    }
}
using Helpers;

namespace Solution
{
    public class B435
    {
        private readonly InputPair<string> _firstRow;

        public B435(InputPair<string> firstRow)
        {
            _firstRow = firstRow;
        }

        public string Process()
        {
            char[] itemArray = _firstRow.Pair.Item1.ToCharArray();
            int totalSwap = int.Parse(_firstRow.Pair.Item2);

            for (int i = 1; i < itemArray.Length; i++)
            {
                char currentItem = itemArray[i];
                for (int j = totalSwap; j > 0 && totalSwap > 0; j--)
                {
                    int swapToIndex = i - j;
                    if (swapToIndex < 0) continue;

                    char swapToItem = itemArray[swapToIndex];
                    if (currentItem > swapToItem)
                    {
                        itemArray = Shift(itemArray, i, swapToIndex);

                        totalSwap -= j;
                        break;
                    }
                }

                if (totalSwap == 0) break;
            }

            return new string(itemArray);
        }

        public char[] Shift(char[] array, int fromIndex, int toIndex)
        {
            char shifItem = array[fromIndex];
            for (int i = fromIndex; i > toIndex; i--)
                array[i] = array[i - 1];

            array[toIndex] = shifItem;

            return array;
        }
    }
}


using System;

public class Test
{
    public static void Main()
    {
        // your code goes here
        string[] str = Console.ReadLine().Trim().Split();
        int k = int.Parse(str[1]);
        char[] chr = str[0].ToCharArray();

        {
        bool change =  false;

        for(int i = 0 ; i < chr.Length ; i++){
                if(k == 0)
                    break;
                int current = (int)chr[i] - (int)'0';
                int max = -1;
                int idx = -1;
                for(int j = 0 ; j < k && j + i + 1 < chr.Length; j++){
                    int m = (int)chr[i + j + 1] - (int)'0';
                if(m > current){
                    max = Math.Max(max,m);
                    if(max == m)
                         idx = j +i + 1;
                }
             }
             if(max != -1){
                int swap = idx - i;
                --Console.WriteLine(idx);
                if(swap <= k)

                    k = k - swap;
                    while(idx > i){
                    char tmp = chr[idx - 1];
                    //Console.WriteLine(tmp);
                    chr[idx - 1] = chr[idx];
                    chr[idx] = tmp;
                    idx--;
                    }
             }
          }

        }
        Console.WriteLine(new string(chr));
    }
}


 class Program
    {
        public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string m = Console.ReadLine();
            if (m==Reverse(n))
            {
                Console.Write("yes");
            }
            else
            {
                Console.Write("no");
            }
            Console.ReadKey();

        }
    }


using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string line1 = Console.ReadLine ();
			string line2 = Console.ReadLine ();

			string result = "";
			for (int i = 0; i < line2.Length; i++) {
				result = line2[line2.Length - 1 - i];
			}
			line2 = result;

			result = "NO";
			if (line1.Equals (line2)) {
				result = "YES";
			}
			Console.WriteLine(result);
		}
	}
}


using System;
using System.Linq;
        public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string m = Console.ReadLine();
            if (n==Reverse(m))
            {
                Console.Write("yes");
            }
            else
            {
                Console.Write("no");
            }
            Console.ReadKey();

        }
    }


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

namespace NEwTechTEst
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = Console.ReadLine();
            var m = Console.ReadLine();
            var rev = m.Reverse();
            Console.WriteLine(n==string.Join("",rev)?"YES":"NO");
        }
    }
}


  public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string m = Console.ReadLine();
            if (m==Reverse(n))
            {
                Console.Write("yes");
            }
            else
            {
                Console.Write("no");
            }
            Console.ReadKey();

        }
    }


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

            if (input2.Length != input.Length)
                Console.WriteLine("NO");

            else
            {
                for (int i = 0; i < input.Length; i++)
                {
                    if(input[i] != input2[input.Length-i-1])
                    {
                        Console.WriteLine("NO");
                        break;
                    }
                    else if(i == input.Length-1)
                    {
                        Console.WriteLine("YES");
                    }
                }
            }

        }
    }


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

namespace ConsoleApplication8
{
    class Program
    {
        public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string m = Console.ReadLine();
            if (m == Reverse(n))
            {
                Console.Write("yes");
            }
            else
            {
                Console.Write("no");
            }
            return 0;
        }
    }
}


#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <math.h>
using namespace std;
typedef long long ll;

int main(int argc, const char * argv[]) {
    string s,t;
    cin>>s>>t;
    int len = (int)t.length();
    for(int i = 0;i<len/2;i++){
        swap(t[i],t[len-i-1]);
    }
    if(s ==t){
        printf("YES");
    }
    else{
        printf("NO");
    }

    return 0;
}


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

namespace ConsoleApp8
{
    class Program
    {
        static void Main(string[] args)
        {
            string x = Console.ReadLine();
            string y = Console.ReadLine();
            if ((x.Length<101) &&(x.Length> 0))
                    {
                long counter1 = y.Length-1;
                long counter2 = 0;
                for (int i = 0; i < x.Length; i++)
                {

                    if (x[i] == y[counter1])
                    {
                        counter2++;
                    }
                    counter1--;

                }
                if (counter2 == x.Length)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
            }

        }

    }
}


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

namespace _40_A
{
    class Program
    {
        static void Main(string[] args)
        {
            string s1 = Console.ReadLine();
            string s2 = Console.ReadLine();
            int n = s1.Length;
            char ch;
            StringBuilder sb1 = new StringBuilder(s1);
            char[] y = s2.ToCharArray();
            for (int i = 0; i <= n / 2; i++)
            {
                ch = sb1[i];
                sb1[i] = sb1[n - 1];
                sb1[n - 1] = ch;
                n--;
            }
            s1 = sb1.ToString();
            if (s1.Equals(s2))
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
            Console.ReadLine(); ReadLine();
        }
    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2Framework
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Console.ReadLine() == new string(Console.ReadLine().ToCharArray().Reverse().ToArray()) ?"YES":"NO");
        }
    }
}


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

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

                char[] translate = input.ToCharArray();
	            Array.Reverse(translate);
	           string tr=    new string(translate);

            int result = string.Compare(input2,tr );
              if(result ==0 )
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");

           }
    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Text;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var str1 = Console.ReadLine();
            var str2 = Console.ReadLine();
            var rev = str1.Reverse();
            var sb = new string(rev.ToArray());
            Console.WriteLine(str2.Equals(sb) ? "YES" : "NO");
        }

    }


using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;

class Program
{
    Program() {
        Char[] a = Console.ReadLine().ToCharArray();
        Array.Reverse(a);
        Console.WriteLine(new string(a) == Console.ReadLine() ? "YES" : "NO");
    }

    static void Main(string[] args)
    {
        new Program();
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pabandykem", "Pabandykem\Pabandykem.csproj", "{A9EFBD61-018B-4B67-8F49-6DDCCB4AB5FD}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{A9EFBD61-018B-4B67-8F49-6DDCCB4AB5FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A9EFBD61-018B-4B67-8F49-6DDCCB4AB5FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A9EFBD61-018B-4B67-8F49-6DDCCB4AB5FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A9EFBD61-018B-4B67-8F49-6DDCCB4AB5FD}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {B540FE07-7FB0-4ABA-9F93-7B2E45355A39}
	EndGlobalSection
EndGlobal


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

namespace ConsoleApp6
{

    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine();
           var t= Console.ReadLine();
            int ct = 0;
            if(s.Length!=t.Length)
            { Console.WriteLine("NO"); }
            else
            {
                for (int i = 0; i < s.Length; i++)
                {
                    if(s[i]!=t[t.Length-1-i])
                    {
                        ct++;
                        Console.WriteLine("NO");
                        break; }
                }
                if(ct==0)
                {
                    Console.WriteLine("YES");
                }
            }

        }
    }
}


namespace Iran
{
        class Amir
        {
                public static void Main()
                {
                        string a=Console.ReadLine();
                        string b=Console.ReadLine();
                        bool ok=true;
                        if(a.Length!=b.Length)
                                ok=false;
                        for(int i=0;ok&&i<a.Length;++i)
                        {
                                if(a[i]!=b[a.Length-i-1])
                                {
                                        ok=false;
                                        break;
                                }
                        }
                        if(ok)
                                Console.WriteLine("YES");
                        else
                                Console.WriteLine("NO");
                }
        }
}


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

namespace ConsoleApplication8
{
    class Program
    {
        public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string m = Console.ReadLine();
            if (m == Reverse(n))
            {
                Console.Write("yes");
            }
            else
            {
                Console.Write("no");
            }
            Console.ReadKey();
return 0;

        }
    }
}


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

namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
         string S =   Console.ReadLine();
         string T = Console.ReadLine();
         if (S.Length < 1 || T.Length < 1 || S.Length > 100 || T.Length > 100)
         { Environment.Exit(0); }
         Translation Translate = new Translation();
         string Ans = Translate.Trans(S, T);
         Console.WriteLine(Ans);

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

namespace codeforces
{
    class Translation
    {
        public string Trans(string S, string T)
        {
            string Temp = ReverseString(S);
            string Yes = "YES";
            string No = "No";
            if (Temp == T)
            { return Yes; }
            else
            { return No; }

        }
        public static string ReverseString(string s)
        {
            char[] arr = s.ToCharArray();
            Array.Reverse(arr);
            return new string(arr);
        }
    }
}


[10:35 PM, 8/18/2020] Bhargav IIIT: using System;
namespace Iran
{
        class Amir
        {
                public static void Main()
                {
                        string a=Console.ReadLine();
                        string b=Console.ReadLine();
                        bool ok=true;
                        if(a.Length!=b.Length)
                                ok=false;
                        for(int i=0;ok&&i<a.Length;++i)
                        {
                                if(a[i]!=b[a.Length-i-1])
                                {
                                        ok=false;
                                        break;
                                }
                        }
                        if(ok)
                                Console.WriteLine("YES");
                        else
                                Console.WriteLine("NO");
                }
        }
}


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

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

            var parties = Enumerable.Select(Console.ReadLine().Split(), s => int.Parse(s)).ToList();

            var partyDictionary = new List<KeyValuePair<int, int>>();
            for (var i = 1; i < parties.Count; i++)
            {
                partyDictionary.Add(new KeyValuePair<int, int>(i + 1, parties[i]));
            }

            var orderedParties = partyDictionary.OrderByDescending(p => p.Value);

            var coalitionSize = parties[0];
            var maxAllyPartySize = parties[0] / 2;
            var parliamentSize = parties.Sum();

            var coalitionParties = new HashSet<int>();
            coalitionParties.Add(1);

            foreach (var party in orderedParties)
            {
                if (party.Value <= maxAllyPartySize)
                {
                    coalitionParties.Add(party.Key);
                    coalitionSize += party.Value;
                }

                if (coalitionSize * 2 > parliamentSize && coalitionParties.Count < parties.Count)
                {
                    Console.WriteLine(string.Join(' ', coalitionParties));
                    return;
                }
            }

            Console.WriteLine("0");
        }
    }
}


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

namespace Console
{
    class Program
    {
        static void Main()
        {
                    MyTask();
        }

        private static void MyTask()
        {
            var input = System.Console.ReadLine();
            var count = int.Parse(input);

            var inputs = System.Console.ReadLine().Split();
            var list = inputs.Select(int.Parse).ToList();

            var totalVotes = list.Sum(a => a);
            var aliceVotes = list.First();
            var aliceСoalition = new List<int>
            {
                1
            };

            for (int i = 1; i < list.Count; i++)
            {
                if (aliceVotes > 0.5f * totalVotes)
                    break;

                if (list[i] * 2 <= list[0])
                {
                    aliceVotes += list[i];
                    aliceСoalition.Add(i + 1);
                }
            }

            if (aliceVotes > 0.5f * totalVotes)
            {
                System.Console.WriteLine(aliceСoalition.Count);
                var result = new StringBuilder();
                aliceСoalition.ForEach(a => result.Append(a + " "));
                System.Console.WriteLine(new string(result.ToString().SkipLast(1).ToArray()));
            }
            else
            {
                System.Console.WriteLine(0);
            }

        }
    }
}


   static void Main(string[] args)
        {

            string s = Console.ReadLine();

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(str[index]))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }


using System;
using System.Threading;

namespace CodeofTask
{
    class Program
    {

        static void Main(string[] args)
        {

            string s = args[0];

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(str[index]))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }

    }
}


using System;
using System.Threading;

    class Program
    {

        static void Main(string[] args)
        {

            string s = args[0];

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(str[index]))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }

    }


class Program
    {

        static void Main(string[] args)
        {

            string s = args[0];

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(Convert.ToString(str[index])))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }


using System;
using System.Threading;

namespace CodeofTask
{
    class Program
    {

        static void Main(string[] args)
        {

            string s = Console.ReadLine();

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(str[index]))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }

    }
}


 class Program
    {

        static void Main(string[] args)
        {

            string s = Console.ReadLine();

            if (s.Length > 100) { Console.WriteLine("Строка превышает длину"); }
            else { Console.WriteLine("Колиество nineteen в строке: " + countstr(s, "nineteen")); }

            Console.ReadLine();
        }

        public static int countstr(string s,string str)
        {

            int count = 0;
            int index = 0;

            while(s.Contains(str[index]))
            {
                for(int i=0;i<s.Length;i++)
                {
                    if (str[index] == s[i]) { index++; s = s.Remove(i,1); break; }
                }
                if (index == str.Length-1) { count++; index=0; }
            }

            return count;
        }

    }


        enum Letters
        {
            n=0,
            i,
            e,
            t
        }
        static void Main(string[] args)
        {
            string s;
            int minim, count;
            s = Console.ReadLine();
            int[] ap = new int[4] { 0, 0, 0, 0 };
            foreach (char letter in s)
                switch(letter)
                {
                    case 'n':
                        ap[(int)Letters.n]++;
                        break;
                    case 'i':
                        ap[(int)Letters.i]++;
                        break;
                    case 'e':
                        ap[(int)Letters.e]++;
                        break;
                    case 't':
                        ap[(int)Letters.t]++;
                        break;
                    default:
                        break;
                }
            //adjust
            ap[(int)Letters.n] /= 3;
            ap[(int)Letters.e] /= 3;
            minim = Math.Min(ap[1], Math.Min(ap[2], ap[3]));
            ap[0] += minim - 1;
            count = Math.Min(ap[0],minim);

            Console.WriteLine(count);
        }
    }
}


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

namespace ConsoleApplication1
{

    class Program
    {

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

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

            months.AddRange(Array.ConvertAll<String, int>(Console.ReadLine().Split(' '), x => { return int.Parse(x); }));
            months.Sort();

            int s = 0;
            for (int i = months.Count-1; i > 0; i--)
            {
                if (s >= k)
                {
                    Console.WriteLine(months.Count - i - 1);
                    return;
                }
                s += months[i];
            }
            if (s >= k)
            {
                Console.WriteLine(months.Count - i - 1);
                return;
            }
            Console.WriteLine("-1");
        }
    }
}


using System;

namespace codebusinesstrip
{
    class Program
    {
        private static void Main(string[] args)
        {
            int k, temp, s2 = 0;
            int[] ai = new int[12];
            k = Convert.ToInt32(Console.ReadLine());
            for (int i = 0; i < 12; i++)
                ai[i] = Convert.ToInt32(Console.ReadLine());

            if (k == 0)
            {
                Console.WriteLine(0);2

            }
            else
            {
                for (int j = 0; j < 12; j++)
                    for (int i = 0; i < 11; i++)
                    {
                        if (ai[i] > ai[i + 1])
                        {
                            temp = ai[i];
                            ai[i] = ai[i + 1];
                            ai[i + 1] = temp;
                        }
                    }

                for (int i = 11; i >= 0; i--)
                {
                    if (k > 0)
                    {
                        k -= ai[i];
                        s2++;
                    }
                }
                Console.WriteLine(k <= 0 ? s2 : -1);

            }
        }
    }
}


 class Program
    {

        static void Main(string[] args)
        {
            int k, m; // k - число k, m - длина массива
            string s = Console.In.ReadLine();
            k = int.Parse(s);
            string[] parts = Console.ReadLine().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            m = parts.Length;
            int[] a = new int[m];
            for (int i = 0; i < m; i++)
            {
                a[i] = int.Parse(parts[i]);
            }
            for (int i = a.Length - 1; i > 0; i--)
                for (int j = 0; j < i; j++)
                    if (a[j] > a[j + 1])
                    {
                        int tmp = a[j];
                        a[j] = a[j + 1];
                        a[j + 1] = tmp;
                    }

            int res = 0;
            int sum = 0;
            while (sum < k)
            {
                res++;
                sum += a[a.Length-res];

            }
            Console.WriteLine(res);
        }

    }
}


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

namespace A.Командировка
{
    class Program
    {
        static void Main(string[] args)
        {
            int k = int.Parse(Console.ReadLine());
            var mas = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int a;
            int sum = 0;
            int l = mas.Length;

            for(int i = 0; i < l - 1; i++)
            {
                for(int j = i; j < l; j++)
                {
                    if (mas[j] > mas[i])
                    {
                        a = mas[j];
                        mas[j] = mas[i];
                        mas[i] = a;
                    }
                }
            }

            l = 0;

            foreach (int x in mas)
            {
                if (sum >= k) break;
                sum += x;
                l++;
            }

            Console.WriteLine(l);
            Console.ReadLine();
        }
    }


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

    class Program
    {

        static void Main(string[] args)
        {
            int k, m; // k - число k, m - длина массива
            string s = Console.In.ReadLine();
            k = int.Parse(s);
            string[] parts = Console.ReadLine().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            m = parts.Length;
            int[] a = new int[m];
            for (int i = 0; i < m; i++)
            {
                a[i] = int.Parse(parts[i]);
            }
            for (int i = a.Length - 1; i > 0; i--)
                for (int j = 0; j < i; j++)
                    if (a[j] > a[j + 1])
                    {
                        int tmp = a[j];
                        a[j] = a[j + 1];
                        a[j + 1] = tmp;
                    }

            int res = 0;
            int sum = 0;
            while (sum < k)
            {
                res++;
                sum += a[a.Length-res];

            }
            Console.WriteLine(res);
        }

    }
}


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

namespace A.Командировка
{
    class Program
    {
        static void Main(string[] args)
        {
            int k = int.Parse(Console.ReadLine());
            var mas = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int a;
            int sum = 0;
            int l = mas.Length;

            for(int i = 0; i < l - 1; i++)
            {
                for(int j = i; j < l; j++)
                {
                    if (mas[j] > mas[i])
                    {
                        a = mas[j];
                        mas[j] = mas[i];
                        mas[i] = a;
                    }
                }
            }

            l = 0;

            foreach (int x in mas)
            {
                if (sum >= k) break;
                sum += x;
                l++;
            }

            Console.WriteLine(l);

            Console.ReadLine();
        }
    }


Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Global
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


namespace a149
{
    class Program
    {
        static int[] BubbleSort(int[] mas)
        {
            int temp;
            for (int i = 0; i < mas.Length; i++)
            {
                for (int j = i + 1; j < mas.Length; j++)
                {
                    if (mas[i] > mas[j])
                    {
                        temp = mas[i];
                        mas[i] = mas[j];
                        mas[j] = temp;
                    }
                }
            }
            return mas;
        }

        static void Main(string[] args)
        {
            int k = Convert.ToInt16(Console.ReadLine());
            int[] mas = Console.ReadLine().Split(' ').Select(e => Convert.ToInt32(e)).ToArray();
            BubbleSort(mas);
            int sum = mas.Sum();
            if (sum < k)
                Console.WriteLine(-1);
            else
            if (k == 0)
                Console.WriteLine(0);
            else
                if (mas[11] >= k)
                Console.WriteLine(1);
            else
                if (mas[11] + mas[10] >= k)
                Console.WriteLine(2);
            else
                if (mas[11] + mas[10] + mas[9] >= k)
                Console.WriteLine(3);
            Console.ReadLine();
        }
    }


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

namespace A.Командировк
{
    class Program
    {
        static void Main(string[] args)
        {
            int k = int.Parse(Console.ReadLine());
            var mas = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int a;
            int sum = 0;
            int l = mas.Length;

            for(int i = 0; i < l - 1; i++)
            {
                for(int j = i; j < l; j++)
                {
                    if (mas[j] > mas[i])
                    {
                        a = mas[j];
                        mas[j] = mas[i];
                        mas[i] = a;
                    }
                }
            }

            l = 0;

            foreach (int x in mas)
            {
                if (sum >= k) break;
                sum += x;
                l++;
            }

            Console.WriteLine(l);
            Console.ReadLine();
        }
    }


#define test

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Linq;
using System.Xml;
using System.Diagnostics;
using IFlowUtils;
using System.Data;
using ConsoleApplication5;
namespace ConsoleApplication7
{

    class Program
    {
        public static void Main(string[] args)
        {
            int money = int.Parse(Console.ReadLine());
            int p1 = int.Parse(Console.ReadLine());
            int p2 = int.Parse(Console.ReadLine()) - int.Parse(Console.ReadLine());
            Console.WriteLine(money/Math.Min(p1,p2));
        }
    }
}


using System;
using System.Numerics;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net.Http.Headers;
using System.Security.Cryptography;
using System.Text;
//using Algorithms.Set_33;

class Solution
{
    private class Tokenizer
    {
        private string currentString = null;

        private string[] tokens = null;

        private int tokenNumber = 0;

        private static readonly char[] Separators = { ' ' };

        public T NextToken<T>(Func<string, T> parser)
        {
            return parser(this.GetNextToken());
        }

        public string NextToken()
        {
            return this.GetNextToken();
        }

        public int NextInt()
        {
            return this.NextToken(int.Parse);
        }

        public long NextLong()
        {
            return this.NextToken(long.Parse);
        }

        private string GetNextToken()
        {
            if (this.currentString == null || this.tokenNumber == this.tokens.Length)
            {
                this.currentString = this.GetNextString();

                while (this.currentString != null && this.currentString.Equals(string.Empty))
                {
                    this.currentString = this.GetNextString();
                }

                if (this.currentString == null)
                {
                    throw new Exception("End of input");
                }

                this.tokens = this.currentString.Split(Separators, StringSplitOptions.RemoveEmptyEntries);
                this.tokenNumber = 0;
            }

            return this.tokens[this.tokenNumber++];
        }

        private string GetNextString()
        {
            string content = Console.ReadLine();
            if (content == null)
            {
                return null;
            }

            return content.Trim();
        }
    }

    static void Main()
    {
        //Console.SetIn(new StreamReader(File.OpenRead("input.txt")));
        //StreamWriter writer = new StreamWriter(File.Create("output.txt"));
        //Console.SetOut(writer);

        Tokenizer tokenizer = new Tokenizer();
        long n = tokenizer.NextLong();
        long a = tokenizer.NextLong();
        long b = tokenizer.NextLong();
        long c = tokenizer.NextLong();

        Console.WriteLine(Guest.Solve(n, a, b, c));

        //writer.Close();
    }

    public class Guest
    {
        public static long Solve(long n, long a, long b, long c)
        {
            if (b - c > a || n < b)
            {
                return n / a;
            }

            long result = 0;
            long buffer;

            while (n >= b)
            {
                buffer = n / b;
                result += buffer;
                n = n - buffer * (b - c);
            }

            return result + n / Math.Min(a, b);
        }
    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Linq;
using System.Xml;
using System.Diagnostics;
using IFlowUtils;
using System.Data;
using ConsoleApplication5;
namespace ConsoleApplication7
{

    class Program
    {
        public static void Main(string[] args)
        {
            int money = int.Parse(Console.ReadLine());
            int p1 = int.Parse(Console.ReadLine());
            int p2 = int.Parse(Console.ReadLine()) - int.Parse(Console.ReadLine()));
            Console.WriteLine(money/Math.Min(p1,p2));
        }
    }
}


using System;
using System.IO;

using Algorithms.Set_33;

class Solution
{
    private class Tokenizer
    {
        private string currentString = null;

        private string[] tokens = null;

        private int tokenNumber = 0;

        private static readonly char[] Separators = { ' ' };

        public T NextToken<T>(Func<string, T> parser)
        {
            return parser(this.GetNextToken());
        }

        public string NextToken()
        {
            return this.GetNextToken();
        }

        public int NextInt()
        {
            return this.NextToken(int.Parse);
        }

        public long NextLong()
        {
            return this.NextToken(long.Parse);
        }

        private string GetNextToken()
        {
            if (this.currentString == null || this.tokenNumber == this.tokens.Length)
            {
                this.currentString = this.GetNextString();

                while (this.currentString != null && this.currentString.Equals(string.Empty))
                {
                    this.currentString = this.GetNextString();
                }

                if (this.currentString == null)
                {
                    throw new Exception("End of input");
                }

                this.tokens = this.currentString.Split(Separators, StringSplitOptions.RemoveEmptyEntries);
                this.tokenNumber = 0;
            }

            return this.tokens[this.tokenNumber++];
        }

        private string GetNextString()
        {
            string content = Console.ReadLine();
            if (content == null)
            {
                return null;
            }

            return content.Trim();
        }
    }

    static void Main()
    {
        //Console.SetIn(new StreamReader(File.OpenRead("input.txt")));
        //StreamWriter writer = new StreamWriter(File.Create("output.txt"));
        //Console.SetOut(writer);

        Tokenizer tokenizer = new Tokenizer();
        long n = tokenizer.NextLong();
        long a = tokenizer.NextLong();
        long b = tokenizer.NextLong();
        long c = tokenizer.NextLong();

        Console.WriteLine(Guest.Solve(n, a, b, c));

        //writer.Close();
    }

    public class Guest
    {
        public static long Solve(long n, long a, long b, long c)
        {
            if (b - c > a || n < b)
            {
                return n / a;
            }

            long result = 0;
            long buffer;

            if (n >= b)
            {
                buffer = (n - b) / (b - c);
                result += buffer;
                n -= buffer * (b - c);
            }

            while (n >= b)
            {
                buffer = n / b;
                result += buffer;
                n = n - buffer * (b - c);
            }

            return result + n / Math.Min(a, b);
        }
    }
}


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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
             Int64 n=Int64.Parse(Console.ReadLine());
             string[]s=Console.ReadLine().Split(' ');
             int[]a=new int[n];
             for(int i=0;i<n;i++)
             a[i]=int.Parse(s[i]);
             bool d=false;
             if(n>0)
             {
             if(a[0]<=15)
             {
                  for(int i=1;i<n;i++)
                  {
                       if(a[i]-a[i-1]>15)
                       {
                            Console.WriteLine(a[i-1]+15);
                            d=true;
                            break;
                       }
                  }
                  if(d==false)
             Console.WriteLine(90);
             }
             else
             Console.WriteLine(15);
             }
             else
             {
                  if(a[0]<=15)
             Console.WriteLine(a[0]+15);
             else
             Cosnole.WriteLine(15);
             }
        }

    }
}


class Program
{
    static void Main(string[] args)
    {
        int mins = Console.ReadLine();
        string minsList = Console.ReadLine();
        string[] mins = minsList.Split(' ');
        int[] finalMins = new int[mins.Length];
        for(int i = 0;i<= mins.Length - 1;i++)
         finalMins[i] = (int) mins[i];
        if(finalMins[0] > 15)
            Console.WriteLine(15);
        else
        {
            int result = 0;
            for(int j = 0;j<= finalMins.Length - 1;j++)
            {
                    if(result + 15 >= finalMins[j] && result < 90)
                    {
                        result = finalMins[j];
                    }
                    else
                    {
                        result = result + 15;
                        break;
                    }

            }
            result = result > 90 ? 90 : result;
            Console.WriteLine(90);
        }

    }
}


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)
        {
            string s = Console.ReadLine();
            int numbLink = 0, numbPearl = 0;
            foreach (char c in s)
            {
                if (c == '-') numbLink++;
                else numbPearl ++;
            }
            if(numbLink % numbPearl == 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 codeforce0
{
    class Program
    {

        public static int min(int maxGhesmateJaabe, int teedadeAjil, int teedadeMoghasem, int zarfiateHarGhesmat)
        {
            int min1 = 0;
            if (teedadeMoghasem<0)
            {
                teedadeMoghasem = 0;
            }
            if (maxGhesmateJaabe+1>teedadeMoghasem)
            {
                min1 = teedadeMoghasem+1;
            }
            else
            {
                min1 = maxGhesmateJaabe;
            }
            int maxZafeiat = ((min1) * zarfiateHarGhesmat);

            if (teedadeAjil>maxZafeiat)
            {
                return 1 + min(maxGhesmateJaabe, teedadeAjil - maxZafeiat, teedadeMoghasem - (maxGhesmateJaabe-1), zarfiateHarGhesmat);
            }
            else
            {
                return 1;
            }

        }

    }

}


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

namespace codeforce0
{
    class Program
    {
        public static int min(int maxGhesmateJaabe, int teedadeAjil, int teedadeMoghasem, int zarfiateHarGhesmat)
        {
            int min1 = 0;
            if (teedadeMoghasem<0)
            {
                teedadeMoghasem = 0;
            }
            if (maxGhesmateJaabe+1>teedadeMoghasem)
            {
                min1 = teedadeMoghasem+1;
            }
            else
            {
                min1 = maxGhesmateJaabe;
            }
            int maxZafeiat = ((min1) * zarfiateHarGhesmat);

            if (teedadeAjil>maxZafeiat)
            {
                return 1 + min(maxGhesmateJaabe, teedadeAjil - maxZafeiat, teedadeMoghasem - (maxGhesmateJaabe-1), zarfiateHarGhesmat);
            }
            else
            {
                return 1;
            }

        }

    }

}


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

namespace codeforce0
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int b = int.Parse(Console.ReadLine());
            int c = int.Parse(Console.ReadLine());
            int d = int.Parse(Console.ReadLine());
            int result = min(a, b, c, d);
            Console.WriteLine(result);

        }
        public static int min(int maxGhesmateJaabe, int teedadeAjil, int teedadeMoghasem, int zarfiateHarGhesmat)
        {
            try
            {
                int min1 = 0;
                if (teedadeMoghasem < 0)
                {
                    teedadeMoghasem = 0;
                }
                if (maxGhesmateJaabe + 1 > teedadeMoghasem)
                {
                    min1 = teedadeMoghasem + 1;
                }
                else
                {
                    min1 = maxGhesmateJaabe;
                }
                int maxZafeiat = ((min1) * zarfiateHarGhesmat);

                if (teedadeAjil > maxZafeiat)
                {
                    return 1 + min(maxGhesmateJaabe, teedadeAjil - maxZafeiat, teedadeMoghasem - (maxGhesmateJaabe - 1), zarfiateHarGhesmat);
                }
                else
                {
                    return 1;
                }
            }
            catch (Exception)
            {

            }

        }

    }

}


    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int b = int.Parse(Console.ReadLine());
            int c = int.Parse(Console.ReadLine());
            int d = int.Parse(Console.ReadLine());
            int result =min(a,b,c,d);
            Console.WriteLine(result);
        }
        public static int min(int maxGhesmateJaabe, int teedadeAjil, int teedadeMoghasem, int zarfiateHarGhesmat)
        {
            int min1 = 0;
            if (teedadeMoghasem<0)
            {
                teedadeMoghasem = 0;
            }
            if (maxGhesmateJaabe+1>teedadeMoghasem)
            {
                min1 = teedadeMoghasem+1;
            }
            else
            {
                min1 = maxGhesmateJaabe;
            }
            int maxZafeiat = ((min1) * zarfiateHarGhesmat);

            if (teedadeAjil>maxZafeiat)
            {
                return 1 + min(maxGhesmateJaabe, teedadeAjil - maxZafeiat, teedadeMoghasem - (maxGhesmateJaabe-1), zarfiateHarGhesmat);
            }
            else
            {
                return 1;
            }

        }

    }


using System;
using System.Collections;
using System.Collections.Generic;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){

		int INF=(int)1e9;
		int min=INF;

		for(int hp=0;hp<=210;hp++){
			for(int at=0;at<=210;at++){
				if(AT[0]+at<=DF[1])continue;
				for(int df=0;df<=210;df++){
					int limit=INF;
					if(AT[1]>DF[0]+df){
						limit=(HP[0]+hp)/(AT[1]-(DF[0]+df));
						if((HP[0]+hp)%(AT[1]-(DF[0]+df))==0)limit--;
					}
					if(limit<=0)continue;
					int kill=HP[1]/(AT[0]+at-DF[1]);
					if(HP[1]%(AT[0]+at-DF[1])!=0)kill++;
					if(kill>0 limit>0 && kill<=limit){
						min=Math.Min(H*hp+A*at+D*df,min);
					}
				}
			}
		}

		Console.WriteLine(min);

	}
	int[] HP;
	int[] AT;
	int[] DF;
	int H;int A;int D;
	public Sol(){
		HP=new int[2];
		AT=new int[2];
		DF=new int[2];
		var d=ria();
		HP[0]=d[0];AT[0]=d[1];DF[0]=d[2];
		d=ria();
		HP[1]=d[0];AT[1]=d[1];DF[1]=d[2];
		d=ria();
		H=d[0];A=d[1];D=d[2];
	}

	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}


using System;
using System.Collections.Generic;

public class NewYearCandles
{
	private static void Main()
	{
		var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
		var a = input[0];
		var b = input[1];

		int o = 0, c = 0;

		while(a > 0)
		{
			o += a;
			c += a;

			a = c / b;
			c = c % b;
		}

		Console.WriteLine(o);
	}
}


#define Library
using System;
using System.Collections.Generic;
using System.Linq;

namespace Codeforces.TaskA
{
    public class Task
    {
        public static void Main()
        {
            var task = new Task();
            task.Solve();
        }

        private void Solve()
        {
            var list = Input.Numbers();
            var a = list[0];
            var b = list[1];
            var res = a;
            while (a >= b)
            {
                var whole = a/b;
                a -= whole*b;
                a += whole;
                res += whole;
            }
            Console.WriteLine(res);
        }
    }
}


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 != 2) And ( x%2 == 0)
            {
                Console.WriteLine("YES");

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

        }
    }
}


using System;

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

		if(input <= 2 || input % 2 != 0)
			return "NO";
		else
			return "YES";
	}
}


static void Main(string[] args)
{
    int num = Console.ReadLine()
    Console.WriteLine(num)
}


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");
            }

        }
    }
}


static void Main()
{
	int n = int.Parse(Console.ReadLine());

    Console.WriteLine(n % 2 == 0 ? 'YES' : '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);
           tw.WriteLine(final);

        tw.Flush();
        tw.Close();
      }
      else
      {
          goto l;
      }
  }
}


using System;

class Program
{
    static void Main()
    {
            int number = int.Parse(Console.ReadLine());
            if (number % 2 == 0)
            {
                Console.WriteLine("YES");
            }
            if (number % 2 != 0)
            {
                Console.WriteLine("NO");
            }
        }

    }
}


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


using System;
class Watermelon{
    static public void Main(){
        string tmp;
        Console.ReadLine(tmp);
        int n=int.Parse(tmp);
        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;

namespace Program1
{
    class Program1
    {
        static void Main(string[] args)
        {
            int x, j;

            bool res = false;

            x = Int32.Parse(Console.ReadLine());

            for(int i = 2; i < 8; i+2)
            {
                j = x - i;

                if(j % 2 == 0)
                    res = true;
            }

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


    public class Program
    {
        public static void Main()
        {
          int a = Console.ReadLine();
          if (a % 2 == 0) Console.WriteLine("YES");
          else Console.WriteLine("NO");
        }
    }


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication6", "ConsoleApplication6\ConsoleApplication6.csproj", "{BF7F7577-72CC-48A4-92C5-021896A0A334}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{BF7F7577-72CC-48A4-92C5-021896A0A334}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{BF7F7577-72CC-48A4-92C5-021896A0A334}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{BF7F7577-72CC-48A4-92C5-021896A0A334}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{BF7F7577-72CC-48A4-92C5-021896A0A334}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


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


using System;
amespace MON_PROJEC1
{
    class Program
    {
        static void Main(string[] args)
        {
            int w     ;
            Console.WriteLine("the weight of the watermelon bought");
            w = int.Parse(Console.ReadLine());

            while(1 < w  || w  >100)
            {
                Console.WriteLine("the weight of the watermelon bought");
                w = int.Parse(Console.ReadLine());
            }

   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 = 2;
            a = int.Parse (Console.ReadLine());

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

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

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

        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "A. watermelon", "A. watermelon\A. watermelon.csproj", "{E8F0CE1F-75CA-4B15-8BD1-A7561B4250E7}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{E8F0CE1F-75CA-4B15-8BD1-A7561B4250E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{E8F0CE1F-75CA-4B15-8BD1-A7561B4250E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{E8F0CE1F-75CA-4B15-8BD1-A7561B4250E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{E8F0CE1F-75CA-4B15-8BD1-A7561B4250E7}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {31F86D30-B7B2-46BF-9756-69DBF40813F4}
	EndGlobalSection
EndGlobal


namespace CodeKata
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            int inp = int.Parse(input);
               if (inp % 2 == 1 || inp == 2 && (inp < 1 || inp > 100))
                { //odd Number
                    Console.WriteLine("NO");
                }
                else
                { //even
                    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<2)
           {
               Console.WriteLine("NO");
           }
             else:
                if (sayi % 2 == 0)
                {
                      Console.WriteLine("YES");
                    }
                    else
                    {
                        Console.WriteLine("NO");
                    }
            Console.ReadLine();

        }
    }
}


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) % 2 == 0))
            {
                Console.WriteLine("YES");
            }

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

        }
    }
}


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


using System;
using System.Text;

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

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

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

        //Console.ReadKey();
    }
}


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

            Console.ReadKey();
        }
    }


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

            int W;
            Console.Write("Weight of the watermelon: ");
            W = int.Parse(Console.ReadLine());
            if (W%2==0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
            } while (true);

        }
    }


public void Problem(int w){
	if((w/2) % 2 == 0){
		return "YES";
	}
	else{
	return "NO";
	}
}


using System;
class Program
{
    static void Main()
    {
        int w;
        console.read(w);
        if(w%2=1)
            console.write("NO");
        else
            console.write("YES");
    }
}


class Watermelon{
    static void Main()
    {
        int n;
        string nstring = Console.ReadLine();
        if (int.TryParse(nstring, out n)){
            if(n<=0 || n==2){
                Console.WriteLine("NO\n");
            }else{
                if(n%2==0){
                    Console.WriteLine("YES\n");
                }else{
                    Console.WriteLine("NO\n");
                }
            }
        }else{
            Console.WriteLine("numero no valido\n");
        }
    }
}


using System;

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

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


using Microsoft.FSharp.Core;
using System;
using System.Reflection;

[assembly: FSharpInterfaceDataVersion(2, 0, 0)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilationMapping(SourceConstructFlags.Module)]
public static class _
{
    [EntryPoint]
    public static int main(string[] args)
    {
        int num = LanguagePrimitives.ParseInt32(Console.ReadLine());
        object value;
        switch (num)
        {
            default:
                value = ((num % 2 != 1) ? "YES" : "NO");
                break;
            case 2:
                value = "NO";
                break;
        }
        Console.WriteLine((string)value);
        return 0;
    }
}


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

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

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

            }

            else
            {
                Console.WriteLine("NO");

            }


static void Main()              //   Method declaration
{
    int x = 12 * 30;              //     Statement 1
    Console.WriteLine (x);        //     Statement 2
}


using System;
using System.IO;

class Watermelon
{
    static string Main(string[] args)
    {
        int number = Int16.Parse(Console.ReadLine());
        if (number % 2 == 1 || number == 2)
            return "NO";
        return "YES";
    }
}


static void Main(string[] args){
    byte weight = 0;
    if(args.Length == 1 && byte.TryParse(args[0],out weight)){
        Console.WriteLine((weight % 2 == 0 && weight > 2)? "YES" : "NO");
    }
    Console.Write("Invalid input");
}


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 && 2 == 0))
            {
                Console.WriteLine("YES");
            }

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

        }
    }
}


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
                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) && (a % 4) == 0))
            {
                Console.WriteLine("YES");
            }

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

        }
    }
}


    class Program
    {
        static void Main()
        {
            float x = Convert.ToInt32(Console.ReadLine());

            if (x%4==0)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
            Console.ReadKey();
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Watermelon1", "Watermelon1\Watermelon1.csproj", "{CBAAC55E-AA40-4738-870E-83EC0AE5AEAC}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{CBAAC55E-AA40-4738-870E-83EC0AE5AEAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{CBAAC55E-AA40-4738-870E-83EC0AE5AEAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{CBAAC55E-AA40-4738-870E-83EC0AE5AEAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{CBAAC55E-AA40-4738-870E-83EC0AE5AEAC}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace PracticeForDummies
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = int.Parse(Console.ReadLine());
            for ( int i=1; i<=weight; i++)
            {
                if ((weight % i == 0)
                Console.WriteLine("YES");
                else
                Console.WriteLine("NO");

            }
        }
    }
}


            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;

class Solution{

	static void Main(String args[]){
		in n = int.Parse(Console.Readline());

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


using System;

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

            int a;
            a = a + 2;
            a = int.Parse (Console.ReadLine());

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

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

        }
    }
}


            int w = int.Parse(Console.ReadLine());
            if (w == 2 || w % 2 != 0)
            {
                Console.WriteLine("NO");
            }
            else
            {
                Console.WriteLine("YES");
            }
            Console.ReadKey();


using System;

namespace codeforces1
{
    class MainClass
    {
        public static void Main (string[] args)
        {
            UInt16 w = Convert.ToUInt16(Console.ReadLine());
            if(w % 2 == 0){
                w /= 2;
                if(w % 2 == 0){
                    Console.WriteLine("Yes");
                }
                else{
                    UInt16 one = w - 1;
                    if((one != 0) && (one % 2) == 0){
                        UInt16 two = w + 1;
                        if((two != 0) && (two % 2) == 0){
                            Console.WriteLine("Yes");
                        }
                        else{
                            Console.WriteLine("No");
                        }
                    }
                    else{
                        Console.WriteLine("No");
                    }
                }
            }
            else{
                Console.WriteLine("No");
            }
        }
    }
}


using System;

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

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

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

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

        }
    }
}


using Ssytem;
class program
{
     public static void Main()
     {
          int x = Convert.ToInt32(Console.ReadLine());
          if(x%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) || (a % 2) == 0))
            {
                Console.WriteLine("YES");
            }

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

        }
    }
}


using System;
class Program {
    static void Main()
    {
        int n = Console.Read ();
        for (var i = 0; i < 100; i += 2)
        {
            if (!((n - i) % 2))
            {
                Console.WriteLine("YES");
            }
        }
        Console.WriteLine("NO");

    }

}


string Weight(int weight)
{
    if(weight % 2 == 0)
    {
        return "YES";
    }
    else
    {
        return "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)
            {
                console.WriteLine("NO");
            }
            else ((W%2) != 0)
            {
                Console.WriteLine("NO");
            }
            else
            {
                Console.WriteLine("YES");
            }
        }
    }
}


        public static bool IsDividable(double w)
        {
            return ((w % 2) == 0) && (w / 2) % 2 == 0;
        }


class Program{
	static void Main(){
		Console.WriteLine(int.Parse(Console.ReadLine()) % 8 == 0 ? "YES" : "NO");
	}
}


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

class Startup
{
    static void Main()
    {
        int total = int.Parse(Console.ReadLine());
        if(total == 2) {
            Console.WriteLine("NO");
            break;
        }
        Console.WriteLine(total % 2 == 0 ? "YES" : "NO" );
    }

}


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


using System;
class Program{
    static void Main(string[] args){
        var mass = int.Parse(Console.ReadLine());
        if (mass < 4 || (mass-2)%2 !=0)) Console.Write("NO");
        else Console.Write("YES");
    }
}


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


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("nooo");
                }
            }
            else
            {
                Console.WriteLine("no");
            }

        }
    }
}


class Program{
    static void Main(string[] args){
        byte weight = 0;
        if(args.Length != 1 || !byte.TryParse(args[0], out weight)){
            Console.WriteLine("Invalid input");
            return;
        }

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


using System;

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

            int a;
            a > 1;
            a = int.Parse (Console.ReadLine());

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

            else if (( a+2 % 4 == 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();


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeForces_Ex", "CodeForces_Ex\CodeForces_Ex.csproj", "{BE4F4D0F-E27F-460E-A4C7-50188C25F76E}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{BE4F4D0F-E27F-460E-A4C7-50188C25F76E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{BE4F4D0F-E27F-460E-A4C7-50188C25F76E}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{BE4F4D0F-E27F-460E-A4C7-50188C25F76E}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{BE4F4D0F-E27F-460E-A4C7-50188C25F76E}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;
using System.Net;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;

namespace Dela.Mono.Examples
{
   class GoogleSearch
   {
      static void Main(string[] args)
      {
         Console.WriteLn(args[2]);
      }
   }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeForces", "CodeForces\CodeForces.csproj", "{7214E0B5-3D6A-46CA-B703-896E5946EA69}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|x86 = Debug|x86
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{7214E0B5-3D6A-46CA-B703-896E5946EA69}.Debug|x86.ActiveCfg = Debug|x86
		{7214E0B5-3D6A-46CA-B703-896E5946EA69}.Debug|x86.Build.0 = Debug|x86
		{7214E0B5-3D6A-46CA-B703-896E5946EA69}.Release|x86.ActiveCfg = Release|x86
		{7214E0B5-3D6A-46CA-B703-896E5946EA69}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
EndGlobal


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

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            bool anw;
            int w = Convert.ToInt16(Console.ReadLine());
            if (w < 4)
            {
                Console.WriteLine("NO");
            }
            else if (w%2 == 0)
            {
                Console.WriteLine("YES")
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Watermelon", "Watermelon\Watermelon.csproj", "{42DD4B06-A1FE-4B28-8A21-F5AF1788919B}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{42DD4B06-A1FE-4B28-8A21-F5AF1788919B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{42DD4B06-A1FE-4B28-8A21-F5AF1788919B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{42DD4B06-A1FE-4B28-8A21-F5AF1788919B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{42DD4B06-A1FE-4B28-8A21-F5AF1788919B}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


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

            int W;
            Console.Write("Weight of the watermelon: ");
            W = int.Parse(Console.ReadLine());
            if (W%2==0)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
            } while (true);

        }
    }


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

class Startup
{
    static void Main()
    {
        int total = int.Parse(Console.ReadLine());
        Console.WriteLine(total % 2 == 0 ? "YES" | "NO" );
    }

}


using System;

namespace BigO_Chapter
{
    class Program
    {
        public static void Main(string[] args)
        {
            int Weight;

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

            if (Weight < 1 || Weight > 100) return;

            if (Weight % 2 == 0)
            {
                if ((Weight / 2) % 2 == 0)
                {
                    Console.WriteLine("Yes");

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


using System;
namespace a{
public class Watermelon {

    public static void main(String[] args) {

        int w=Console.Read();
        if (w<=100&&w>=1&&w%2==0&&w!=2) {
          Console.Write("NO");
        }
        else
        {
           Console.Write("YES");
        }
        }
    }

}


#include <iostream>
using namespace std;

int main() {
	int w;

	cin >> w;
	if ((w % 2) % 2 == 0)
		cout << "YES";
	else
		cout << "NO";

	system("pause");
	return 0;

}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{BF7F7577-72CC-48A4-92C5-021896A0A334}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>ConsoleApplication6</RootNamespace>
    <AssemblyName>ConsoleApplication6</AssemblyName>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>


using System;
{
    class Program
    {
        static void Main(string[] args)
        {
            byte watermelon = 1;
            Console.Write("What is the weight of the watermelon : ");
            watermelon = byte.Parse(Console.ReadLine());
            if (watermelon <= 100)
            {
                if (watermelon % 2 == 0)
                    Console.WriteLine("Yes");
                else
                    Console.WriteLine("No");
            }
            Console.ReadKey();
        }
    }
}


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) && (a % 2) == 0))
            {
                Console.WriteLine("YES");
            }

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

        }
    }
}


using system;
class program
{
    static void main()
{
int w;
console.read(w);
if(w%2=1)
console.write("no");
else
console.write("yes");
}
}


using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;

namespace CSharp_Shell
{

    public static class Program
    {
        public static void Main()
        {
           int i = int.Parse(Console.ReadLine());
           if(i=!0)
           {
              if(i % 2==0)
              {
            	Console.WriteLine("yes");
              }
              else
              {
            	Console.WriteLine("no");
              }
           }
           else
           {
           	Console.WriteLine("yes");
           }
        }
    }
}


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

namespace A4_Watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            /*=================================================
             * first step : receive input
             * ==============================================*/
            int W = Convert.ToInt32(Console.ReadLine());
            /*==================================================
             * second step : ensure the Number is even and bigger than 2
             * ================================================*/
                int Remainder = W % 2;
                if (Remainder == 0 && W > 2)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
                Console.ReadKey();
            }
        }
    }
}


string a = Console.ReadLine();
                if (Convert.ToInt32(a) <= 100)
                {
                    if (Convert.ToInt32(a) >= 1)
                    {
                        int b = Convert.ToInt32(a) % 2;
                        if (b == 0)
                        {
                            Console.WriteLine("YES");
                        }
                        else Console.WriteLine("NO");
                    }
                    else Console.WriteLine("NO");
                }
                else Console.WriteLine("NO");


using System;

namespace CodeKata
{
    class Program
    {
        static void Main(int n)
        {
            Console.WriteLine(CodeForceWaterMelon(n));

        }
        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;
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30523.141
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "problem4a", "problem4a.csproj", "{C4F94F8D-4503-4238-82E8-2FB4AB5CB73B}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{C4F94F8D-4503-4238-82E8-2FB4AB5CB73B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{C4F94F8D-4503-4238-82E8-2FB4AB5CB73B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{C4F94F8D-4503-4238-82E8-2FB4AB5CB73B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{C4F94F8D-4503-4238-82E8-2FB4AB5CB73B}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {73CBAF83-E471-446B-B123-FF2F67D6DAB5}
	EndGlobalSection
EndGlobal


using System;

class Program
{
    static void Main()
    {
        int w;
        w=Convert.Toint32(Console.ReadLine()) ;
        if(w%2==1)
            Console.Write("NO");
        else
            Console.Write("YES");
    }
}


using System.Diagnostics;

class Program{
    static void Main(string[] args){
        byte weight = 0;
        if(args.Length != 1 || !byte.TryParse(args[0], out weight)){
            Debug.WriteLine("Invalid input");
            return;
        }

        Debug.WrileLine((weight %2 == 0 && weight > 2) ? "YES" : "NO");
    }
}


static void Main(string[] args)
    {
        int num = int.Parse(args[0]);
        if (num < 4)
        {
            Console.WriteLine("False");
        }
        else
        {
            int shift = num >> 1;
            shift = shift << 1;
            Console.WriteLine(shift == num);

        }

    }


            int w;

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

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

            }


class TestClass
{
    static void Main(string[] args)
    {
        var num = Console.ReadLine();
        Console.WriteLine(num);
    }
}


using System;
using System.Text;

class Solution{

	static void Main(String args[]){
		int n = int.Parse(Console.Readline());

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


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

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            int weight = 0;
            string w;
            w = Console.ReadLine();
            bool result = int.TryParse(w, out weight);
            weight = weight - 2
            if (result == true && weight >=1 && weight <=100)
            {
            if ( weight % 2 == 0)
            {
                Console.WriteLine("YES");
            } else {
                Console.WriteLine("NO");
            }
            }

        }
    }
}