 class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            Regex regex = new Regex(@"hello*");
            Match match = regex.Match(input);
            if (match.Success)
            {
                Console.WriteLine("YES");
            }
            else
                Console.WriteLine("NO");
        }
    }


using System;
using System.Linq;

public class Program
{
    private static void Main()
    {//hlelo
        var str = new string(Console.ReadLine().Where(c => "helo".Contains(c)).ToArray());
        str = str.Remove(0, str.IndexOf('h'));
        if (str.IndexOf("h") < str.IndexOf("e") && str.All(c => "helo".Contains(c)) && str.Count(c => c == 'l') > 1)
        {
            str = str.Remove(0, str.IndexOf('e'));
            if (str.IndexOf("e") < str.IndexOf("l"))
            {
                str = str.Remove(0, str.IndexOf('l')+);
                if (str.IndexOf("l") < str.IndexOf("o"))
                {
                    Console.WriteLine("YES");
                    return;
                }
            }
        }

        Console.WriteLine("NO");
    }
}


using System;
using System.Linq;

namespace codeforces58A
{
    class Program
    {
        static void Main(string[] args)
        {
            string input_string = Console.ReadLine();
            string hello = "hello";
            int hello_index = 0;

            for (int i = 0; i < input_string.Length; i++)
            {
                if (input_string[i] == hello[hello_index])
                    hello_index += 1;

            }

            if (hello_index == 5){
                Console.WriteLine("YES");
            }
            else{
                Console.WriteLine("NO");
            }
        }

    }
    }
}


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

namespace Chat_Room___Guloso
{
    static class Operacao
    {
        private static int k = 0; //variável de controle para letras desejadas encontradas
        private static string[] frase = { "h", "e", "l", "l", "o" }; //string buscada

        public static void TesteChatRoom(string s) //funcionamento do algoritmo
        {
            for (int i = 0; i < s.Length; i++) //percorrer a string inserida pelo usuário
            {
                if (frase[k] == Convert.ToString(s[i])) //se a letra na string digitada é equivalente a letra na string procurada
                {
                    k++; //prosegue para a próxima letra da string digitada

                    if (k == 5) //se o contador chegar em 5 -> "hello" encontrado
                    {
                        Console.WriteLine("YES"); //exibe confirmação
                        break; //interrompe o algoritmo
                    }
                }
            }
            //acabando de percorrer a string
            if (k < 5) //Se o contador de controle for menor que 5
                Console.WriteLine("NO"); //mensagem de negação -> palavra não encontrada
        }
    }
}


using System;
using static System.Linq.Enumerable;
class Solution {

  static void Main(string [] args) {
    var A = Array.ConvertAll<string, int>(Console.ReadLine().Split(' '), int.Parse).ToList();
    if (A.Sum() % 2 > 0) {
      Console.WriteLine("Impossible");
    }
    else {
      int[] ans = {0, 0, 0};
      while (A.Sum() > 0) {
        int argMin = A.IndexOf(A.Min());
        int i = (argMin + 1) % 3, j = (i + 1) % 3;
        --A[i]; --A[j];
        ++ans[i];
      }
      Console.WriteLine(string.Join(' ', ans));
    }
  }
};


public static class Program
{
    public static void Main(string[] args){
         string s = Console.ReadLine();
         int length = s.Count + 1;
         Console.WriteLine((26 * length) - length);
}
}


  string First_Line = Console.ReadLine();
            string Second_Line = Console.ReadLine();
            Console.WriteLine(string.Compare(First_Line, Second_Line));


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Problem112A", "Problem112A\Problem112A.csproj", "{B3F4B960-FFEE-441A-8FF8-37DDC98BF8F8}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{B3F4B960-FFEE-441A-8FF8-37DDC98BF8F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B3F4B960-FFEE-441A-8FF8-37DDC98BF8F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B3F4B960-FFEE-441A-8FF8-37DDC98BF8F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B3F4B960-FFEE-441A-8FF8-37DDC98BF8F8}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;

class program
{
    static void Main(string[] args)
    {
        string firstString = Console.ReadLine();
        string secondString = Console.ReadLine();
        string firstString_ = firstString.ToLower();
        string secondString_ = secondString.ToLower();

        if(firstString_ < secondString_)
        {
           Console.WriteLine("-1");
        }
        else if(firstString_ > secondString_)
        {
            Console.WriteLine("1");
        }
        else
        {
            Console.WriteLine("0");
        }

    }
}


using System;

    class program{

    static void Main(string[] args)
    {
        string firstString = Console.ReadLine();
            string secondString = Console.ReadLine();
            byte[] firstByte = Encoding.ASCII.GetBytes(firstString.ToLower());
            byte[] secondByte = Encoding.ASCII.GetBytes(secondString.ToLower());

            int compareF = 0;
            int compareS = 0;
            for (int i=0;i< firstByte.Length;i++)
            {
                if(firstByte[i] > secondByte[i])
                {
                    compareF = firstByte[i] - secondByte[i];
                }
                else
                {
                    compareS = secondByte[i] - firstByte[i];
                }
            }
            if(compareF > compareS)
            {
                Console.WriteLine("1");
            }
            else if(compareF < compareS)
            {
                Console.WriteLine("-1");
            }
            else
            {
                Console.WriteLine("0");
            }
    }
}


namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
            string b = Console.ReadLine();

            if (a.Length > b.Length)
                Console.WriteLine(1);
            if (a.Length < b.Length)
                Console.WriteLine(-1);
            if (a.Length == b.Length)
                Console.WriteLine(0);

            Console.ReadKey();
        }
    }
}


namespace codeforces
//#31 Resolve Petya and Strings
{
    class Program
    {
        static void Main(string[] args)
        {
            string firstinput = Console.ReadLine(),
                   secondinput = Console.ReadLine(),
                   differentstrings1 = "", differentstrings2 = "";

            int length = firstinput.Length;

            firstinput = firstinput.ToLower();
            secondinput = secondinput.ToLower();

            for (int i = 0; i < length; i++)
            {
                if (firstinput[i] != secondinput[i]) { differentstrings1 += firstinput[i]; differentstrings2 += secondinput[i]; break; }
            }
            if (firstinput == secondinput) Console.WriteLine(0);
            if ((int)differentstrings1[0] > (int)differentstrings2[0]) Console.WriteLine(1);
            else if ((int)differentstrings1[0] < (int)differentstrings2[0]) Console.WriteLine(-1);
            else if ((int)differentstrings1[0] == (int)differentstrings2[0]) Console.WriteLine(0);
            Console.ReadLine();
        }
    }
}


using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Xml.Schema;

namespace CodeForces
{

    class Program
    {

        public static int CompareString(string one, string two)
        {
            int output = 0;
            string temp;
            bool change = false;
            if(one.Length>two.Length)
            {
                temp = two;
                two = one;
                one = temp;
                change = true;
            }

            for(int i=0;i<one.Length;i++)
            {
                if(one[i]<two[i])
                {
                    output = -1;
                    break;
                }
                else if(one[i]>two[i])
                {
                    output = 1;
                    break;
                }
            }

            if(change)
            {
                output *= -1;
            }

            return output;
        }

        static void Main(string[] args)
        {
            string strFrs = Console.ReadLine().ToLower();
            string strSec = Console.ReadLine().ToLower();
            int output = 0;

            if(strFrs!=strSec)
            {
                output = CompareString(strFrs, strSec);
            }

            Console.WriteLine(output);
        }
    }
}


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

namespace _2_2
{
    class Program
    {
        static void Main(string[] args)
        {
            string a, b;
            a = Console.ReadLine();
            b = Console.ReadLine();

            if(a.ToLower() == b.ToLower()){
                Console.WriteLine("0");
            }
            else if(a.ToLower()>b.ToLower()){
                Console.WriteLine("-1");
            }
            else{
                Console.WriteLine("1");
            }
        }
    }
}


providerusing System;

class StrPetya
{
    private string _Str1;
    private string _Str2;

    private string _str1
    {
        get => _Str1;
        set => _Str1 = GetLowerCase(value);
    }

    private string _str2
    {
        get => _Str2;
        set => _Str2 = GetLowerCase(value);
    }

    public StrPetya(string _str1, string _str2)
    {
        this._str1 = _str1;

        this._str2 = _str2;
    }

    private string GetLowerCase(string _value)
    {
        string _lowercasestr = null;
        foreach (var symbol in _value)
        {
            if (symbol > 64 & symbol < 91)
                _lowercasestr += (char)(symbol + 32);
            else
                _lowercasestr += symbol;
        }

        return _lowercasestr;
    }

    private int SummStringSymbol(string _str)
    {
        int summ = 0;
        foreach (var symbol in _str)
        {
            summ += (int)symbol;
        }

        return summ;
    }

    public int GetCode()
    {
        if (SummStringSymbol(_str1) > SummStringSymbol(_str2))
            return 1;
        if (SummStringSymbol(_Str1) < SummStringSymbol(_Str2))
            return -1;

        return 0;
    }

}

class MyClass
{
    static void Main()
    {
        string _str1 = Console.ReadLine();
        string _str2 = Console.ReadLine();

        StrPetya obj = new StrPetya(_str1, _str2);

        Console.WriteLine(obj.GetCode());
    }
}


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

namespace algorithms_700_01
{
    class Program
    {
        static void Main()
        {
            Console.ReadLine();
            var fingerPrintDigits = Console.ReadLine().Split(new char[] { ' ' }).Select(x => int.Parse(x));
            var possibleSecretDigits = Console.ReadLine().Split(new char[] { ' ' }).Select(x => int.Parse(x)).ToHashSet();
            var secretCodeDigits = new List<int>();
            foreach (var fingerPrintDigit in fingerPrintDigits)
            {
                if (possibleSecretDigits.Contains(fingerPrintDigit))
                {
                    secretCodeDigits.Add(fingerPrintDigit);
                }
            }
            Console.WriteLine(string.Join(" ", fingerPrintDigits));
        }
    }
}


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

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

            var line1 = Console.ReadLine().Split();
            var line1num = Array.ConvertAll(line1, int.Parse);

            var line2 = Console.ReadLine().Split();
            var line2num = Array.ConvertAll(line2, int.Parse);

            var line3 = Console.ReadLine().Split();
            var line3num = Array.ConvertAll(line3, int.Parse);

            var sequance = new List<int>();
            var fingerprinted = new List<int>();
            var indexes = new List<int>();
            for (var i = 0; i < line1num[0]; i++)sequance.Add(line2num[i]);
            for (var i = 0; i < line1num[1]; i++) fingerprinted.Add(line3num[i]);

            foreach(var i in fingerprinted)
            {
                if (sequance.Contains(i))
                {
                    indexes.Add(sequance.IndexOf(i));
                }
            }
            indexes.Sort();
            foreach (var index in indexes)
            {
                Console.WriteLine(sequance[index]);
            }
        }

    }
}


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

            for (int i = 2; i < w; i += 2)
            {
                var j = w - i;
                if (j > 0 && j % 2 == 0)
                {
                    Console.WriteLine("YES");
                }
            }

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

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

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

        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30413.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cf", "cf\cf.csproj", "{5D3406DD-5F03-4E9B-B861-254E453ED509}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{5D3406DD-5F03-4E9B-B861-254E453ED509}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{5D3406DD-5F03-4E9B-B861-254E453ED509}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{5D3406DD-5F03-4E9B-B861-254E453ED509}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{5D3406DD-5F03-4E9B-B861-254E453ED509}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {BFA2A156-5B5E-403B-BEBD-FA4972E0C310}
	EndGlobalSection
EndGlobal


using System;
using System.IO;

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

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

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


public void DivisisbleByEven(int weight)
        {
            if (weight / 2)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }


int W;
console.read(w);
if(w%2=1)
console.writeline("No");
else
console.writeline("yes");


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

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

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

        }
    }
}


using System;

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


class Program
    {
        static void Main(string[] args)
        {
            int i;
            Console.Write("Enter a Number : ");
            i = int.Parse(Console.ReadLine());
            if (i % 2 == 0 && i > 2)
            {
                Console.Write("YES");
                Console.Read();
            }
            else
            {
                Console.Write("NO");
                Console.Read();
            }
        }
    }


        static void Main(string[] args)
        {
            StringBuilder input = new StringBuilder(Console.ReadLine());
            for (int i = 0; i < input.Length - 2; i++ )
            {
                if (input[i] == 'W' && input[i + 1] == 'U' && input[i + 2] == 'B')
                {
                    input  = input.Remove(i, 3);
                    input.Insert(i, ' ');
                    i = -1;
                }
            }
            Console.WriteLine(input.ToString().Trim());
        }


using System;

class Program {
  static void Main() {
    var s = Console.ReadLine();
    while (s.StartsWith("WUB")) s = s.Substring(3);
    while (s.EndsWith("WUB")) s = s.Substring(0, s.Length - 3);
    Console.WriteLine(string.Join(" ", s.Split({"WUB"}, StringSplitOptions.RemoveEmptyEntries)));
  }
}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{417190B1-DD68-4797-AFEF-35BFED06A6FC}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Hitrez</RootNamespace>
    <AssemblyName>Hitrez</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    <PlatformTarget>x86</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|x86' ">
    <PlatformTarget>x86</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>
  <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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication9
{
    class Main
    {
        static void Main(string[] args)
        {
            double n, m, a;
            n = Double.Parse(Console.ReadLine());
            m = Double.Parse(Console.ReadLine());
            a = Double.Parse(Console.ReadLine());
            int k = (int) Math.Ceiling((n / a));
            int l = (int) Math.Ceiling((m / a));
            int answer = k * l;
            Console.WriteLine(answer);
        }
    }
}


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

            int num1,num2,num3;
            num1 = int.Parse(Console.ReadLine());
            num2 = int.Parse(Console.ReadLine());
            num3 = int.Parse(Console.ReadLine());
            if (num1 < num2 && num1 < num3)
                Console.Write(num1);
            else if (num2 < num1 && num2 < num3)
                Console.Write(num2);
            else
                Console.Write(num3);

            }

        }
    }
}


namespace A.Theatre_Square
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            ulong res = 0;
            int[] temp = new int[2];
            temp[0] = int.Parse(s[0]);
            temp[1] = int.Parse(s[1]);
            int min = Math.Min(temp[0], temp[1]);
            int max = Math.Max(temp[0], temp[1]);
            int m = min;
            int temp0 = 0;
            int temp2 = int.Parse(s[2]);
            if (int.Parse(s[2]) == 1)
                res = (ulong)max * (ulong)min;
            else
            {
                while (m > 0)
                {
                    m -= int.Parse(s[2]);
                    temp0++;
                }
                while (max > 0)
                {
                    max -= temp2;
                    res++;
                }
                res *= (ulong)temp0;
            }
            Console.WriteLine(res);
            Console.ReadLine();
        }
    }
}


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

    public class TheaterSquare
    {

        public static void main(string[] args)
        {
            long n, m, a;
            n = long.Parse(Console.ReadLine());
            m = long.Parse(Console.ReadLine());
            a = long.Parse(Console.ReadLine());

            long x = m / a, y = n / a;
            if (n % a != 0)
                ++y;
            if (m % a != 0)
                ++x;
            Console.WriteLine(x * y);

        }

    }


/*
* 1A - Театральная площадь
* http://codeforces.com/problemset/problem/1/A
*/
using System;

namespace RConsole
{
	public class _1A
	{
		public static void Main ()
		{
            string [] input = Console.ReadLine().Split(' ');
            long n = Convert.ToDouble(input[0]);
            long m = Convert.ToDouble(input[1]);
            long a = Convert.ToDouble(input[2]);
            Console.WriteLine(Math.Ceiling(n / a) * Math.Ceiling(m / a));
		}
	}
}


namespace _1A_codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            double n = double.Parse(Console.ReadLine());
            double m = double.Parse(Console.ReadLine());
            double a = double.Parse(Console.ReadLine());
            Console.WriteLine(Math.Ceiling(n/a)*Math.Ceiling(m/a));
        }
    }
}


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace application1

{

    class Program

    {

        static void Main(string[] args)

        {
           int64 n, m, a;
		   n = int.Parse(Console.Read());
		   m = int.Parse(Console.Read());
		   a = int.Parse(Console.Read());

           Console.WriteLine(Math.Ceiling((n-1)/a) + Math.Ceiling((m-1)/a));

        }

    }

}


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

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

            int c = n / a;
            int y = m / a;

            if ( n%a != 0)
            {
                y++;
            }
            if (m%a != 0)
            {
                c++;
            }
             Console.WriteLine(x*y);

        }
    }
}


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace application1

{

    class Program

    {

        static void Main(string[] args)

        {
           int64 n, m, a;
		   n = Console.Read();
		   m = Console.Read();
		   a = Console.Read();

           Console.WriteLine(Math.Ceiling((n-1)/a) + Math.Ceiling((m-1)/a));

        }

    }

}


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

namespace Dragon
{
    class Program
    {
        static void Main(string[] args)
        {
            int opp = 0;
            int p = int.Parse(Console.ReadLine());
            int d = int.Parse(Console.ReadLine());
            int c = int.Parse(Console.ReadLine());
            int f = int.Parse(Console.ReadLine());
            int dic = int.Parse(Console.ReadLine());

            for (int i = 1; i*p < dic; i++)
            {
                if(((i-c)*d)>=(i*p))
                {
                    opp++;
                    int iop = i * p;
                    int iopd = iop / d;

                    c = i + iopd + f;

                }
                else
                {

                }
            }
            Console.WriteLine(op);
        }
    }
}


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

namespace timusCsharp //1
{
    static class Program
    {
        static void Main()
        {
			var ret = 0;
            int a = Int32.Parse(Console.ReadLine());
			int b = Int32.Parse(Console.ReadLine());
			int c = Int32.Parse(Console.ReadLine());
			b = Math.Floor(b/2);
			c = Math.Floor(c/4);
			int[] arr = {a, b*2, c*4};
			int crit = arr.ToList().IndexOf(arr.Max());
			if (crit == 1) ret = a*7;
			if (crit == 2) ret = b*7;
			if (crit == 3) ret = c*7;

            Console.WriteLine(ret);
        }
    }
}


 static void Main(string[] args)
        {

            int z = 0;
            int a = int.Parse(Console.ReadLine()),
                b = int.Parse(Console.ReadLine()),
                c = int.Parse(Console.ReadLine());
            while (a!=0 &&  b>=2  &&  c>=4)
            {
                a--;
                b = b - 2;
                c = c - 4;
                z += 7;
            }
            Console.WriteLine(z);
        }


using System;
class Task
{
    static void Main()
    {

        string s=Console.ReadLine().ToLower();
        foreach (char i in s)
        {
            if(!"aeiouy".Contains(i))
            {
                Console.WriteLine(".{0}",i);
            }
        }

    }

}


using System;
using System.Linq;

public static class Program
{
  public static void Main() {
    var str = Console.ReadLine();
    foreach (var c in str)
      if ((new [] {'A', 'O', 'Y', 'E', 'U', 'I'}).Contains(Char.ToUpper(c)))
        ;
      else
      {
        Console.Write('.');
        Console.Write(c.ToString().ToUpperCase());
      }
  }
}


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

namespace _118A_String_Task
{
    class Program
    {
        static void Main(string[] args)
        {
            String str=Console.ReadLine();
            for(int i=0;i<str.Length;i++)            //就是為了"看過"每一個str裡的字元str[0]~str[str.Length-1]

                if (str[i] >= 'A' && str[i] <= 'Z')  //如果字元裡有大寫A~Z
                {
                    str[i] = str[i] - 'A' + 'a';     //我所輸入的字串要換成小寫   本來就小寫的就不用換→大寫才要換  所以妳想要把字元變小寫就是先確定 這個字元是大寫才要把他變小寫所以妳的if不是已經寫了 if(str[i]>='A'&&str[i]<='Z') 這個if是true就代表str[i]是大寫
                    //不會只把A換成a  因為ASCII的編碼 'a'+1='b' 'b'+1='c'
                }

             String cake;
                for(int i=0;i<str.Length;i++)
                    if (str[i] != 'a' && str[i] != 'e' && str[i] != 'i' && str[i] != 'o' && str[i] != 'u' && str[i] != 'y')
                    {
                        cake = cake + '.';
                        cake = cake + str[i];
                    }
                Console.WriteLine(cake);

        }
    }
}


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

namespace prob5_String_Task
{
    class Program
    {
        static void Main(string[] args)
        {
            var Input =Console.ReadLine() ;
            var newStringsList = new List<String>();
            var removingVowels = RemovingVowels(Input, newStringsList);
            Console.WriteLine(removingVowels);

            string RemovingVowels ( string input, List<string> stringsList) {

                if (input.Length > 0 && input.Length <= 100)
                foreach(char character in input)
                {
                    if ( character != 'A' && character != 'E' && character != 'I' && character != 'O' && character != 'U' && character != 'a' && character != 'e' && character != 'e' && character != 'o' && character != 'u' &&  character != ' ')
                    {
                        var letter = char.ToString(character);
                        stringsList.Add(".");
                        stringsList.Add(letter);
                    }
                }
                string noVowel = string.Join("",stringsList) ;
                string output = noVowel.ToLower();
                return output;

            }

        }

    }
}


using System;

namespace CodeForves
{
    class A118
    {
        static void Main()
        {
            string original = Console.ReadLine().ToLower();
			char[] vowels = new char[5]{'a','e','i','o','u','y'};
            string translated = "";

            foreach (char alphabet in original.ToCharArray())
            {
                bool vow = false;

				foreach(char vowel in vowels)
                {
                    if (alphabet == vowel)
                    {
                        vow = true;
                        break;
                    }
                }

                if (!vow)
                {
                    translated += "." + alphabet.ToString();
                }
            }

            Console.WriteLine(translated);
        }
    }
}


using System;

namespace sp{
    class Program{
        static void Main(){
            string s = Console.ReadLine();
            string result = "";

            for(int i = 0;i<s.Length;i++){
                char ch = s[i].ToLower();
                if(ch != 'a' && ch != 'e' && ch != 'y' && ch != 'o' && ch!='u' && ch != 'i'){
                    result+= "." + ch;
                }
            }

            Console.WriteLine(result);
        }
    }
}


class Program
    {
        static void Main(string[] args)
        {
            var vowels = new[] {'a', 'A', 'o', 'O', 'y', 'Y', 'e', 'E', 'u', 'U', 'i', 'I'};
            var str = Console.ReadLine();
            foreach (var ch in str)
            {
                if (vowels.Contains(ch))
                    continue;
                Console.Write('.');
                Console.Write(Char.ToLower(ch));
            }
            Console.WriteLine();
        }
    }


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

class Program
{
    static void Main()
    {
        string del = "aoeuyi";
        string a = Console.ReadLine().ToLower();

        string result = "";

        for(int i = 0; i < a.Length; ++i)
        {
            if (del.Contains(a[i]))
            {
                a = a.Remove(i,1);
                --i;
                continue;
            }
        }

        for(int i = 0; i < a.Length; ++i)
        {
            result = result + '.' + a[i];
        }
        Console.WriteLine(result);
    }

}


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

namespace prob5_String_Task
{
    class Program
    {
       static static void Main(string[] args)
        {
            string Input =Console.ReadLine() ;
            var newStringsList = new List<String>();
            var removingVowels = RemovingVowels(Input, newStringsList);
            Console.WriteLine(removingVowels);

            string RemovingVowels ( string input , List<string> stringsList) {

                if (input.Length > 0 && input.Length <= 100)
                foreach(char character in input)
                {
                    if ( character != 'A' && character != 'E' && character != 'I' && character != 'O' && character != 'U' && character != 'a' && character != 'e' && character != 'e' && character != 'o' && character != 'u' &&  character != ' ')
                    {
                        var letter = char.ToString(character);
                        stringsList.Add(".");
                        stringsList.Add(letter);
                    }
                }
                string noVowel = string.Join("",stringsList) ;
                string output = noVowel.ToLower();
                return output;
            };
        }

    }
}


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

namespace ca805A
{
    class Program
    {
        public static List<int> Primes()
        {
            var result = new List<int>(1000000);
            var n = Convert.ToInt32(Math.Sqrt(m));
            result.Add(2);
            result.Add(3);;
            return result;
        }

        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split(' ');
            var l = Convert.ToInt32(input[0]);
            var r = Convert.ToInt32(input[1]);
            var res = Primes();
            var dict = new Dictionary<int, int>();
            for (int j = 0; j < res.Count; j++)
            {
                for (int i = l; i <= r; i++)
                {
                    if (!dict.ContainsKey(res[j]))
                        dict[res[j]] = 0;
                    if (i % res[j] == 0)
                        dict[res[j]]++;
                }
            }
            var maxValue = dict.Values.Max();
            var answer =  (from p in dict
             where p.Value == maxValue
             select p.Key).First();
            Console.WriteLine(answer);
        }
    }
}


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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string []s = Console.ReadLine().Split(' ');
            int a = Convert.ToInt32(s[0]);
            int b = Convert.ToInt32(s[1]);
            int res = 0;
            while(a <= b)
            {
                a *= 3;
                b *= 2;
                res++;
            }
            Console.WriteLine(res);
            System("pause");
        }
    }
}


public static void Main(string[] args)
        {
            var data = Console.ReadLine().Split(' ');
            var firstW = int.Parse(data[0]);
            var secondW = int.Parse(data[1]);
            var days = 0;

            while (true)
            {
                days++;
                firstW *= 3;
                secondW *= 2;
                if (firstW > secondW)
                {
                    Console.WriteLine(days);
                    return;
                }
            }
        }


using System;

public class program
{
public static void main()
{
    try{

    int a,b;
var input=Console.ReadLine().Split(' ');

a=Convert.ToInt32(input[0]);
b=Convert.ToInt32(input[1]);

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

        a=a*3;
        b=b*3;
        if(a>b)
        {
            Console.WriteLine(i+1);
break;
        }
    }

    }
    catch(Exception ex)
    {
    Console.WriteLine("invalid input");
    }
}
}


int a =Convert.ToInt16(args[0]);
            int b = Convert.ToInt16(args[1]);
            int nOfYears = 0;
            while (a <= b)
            {
                a *= 3;
                b *= 2;
                nOfYears++;
            }
            Console.WriteLine(nOfYears);


using System;
using System.Linq;

namespace ConsoleApplication
{
    sealed class Program
    {
        static void Main(string[] args)
        {
            BigInteger a = 5;
            var d = Console.ReadLine().Split().Select(Int32.Parse).ToArray();
            int a = d[0], b = d[1], result = 0;
            while (a <= b)
            {
                a *= 3;
                b *= 2;
                result++;
            }
            Console.WriteLine(result);
        }
    }
}


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

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] numbers = Console.ReadLine()
                .Split(' ', StringSplitOptions.RemoveEmptyEntries)
                .Select(item => int.Parse(item))
                .ToArray();
            int a = numbers[0];
            int b = numbers[1];
            for (int i = 0; ; i++)
            {
                if (a > b)
                {
                    Console.WriteLine(i);
                    break;
                }
                a = a * 3;
                b = b * 2;
            }

        }
    }
}


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

namespace A.Bear_and_Big_Brother
{
    class Program
    {
        static void Main(string[] args)
        {
            string line;
    while ((line = Console.ReadLine()) != null) {
        string[] split = line.Split(new char[] { ' ' }, StringSplitOptions.None);
        long a = Int64.Parse(split[0]);
        long b = Int64.Parse(split[1]);
            long z = 0;
            for( z=0;;b*=2 ,a*=3,z++)
            {
                if (a > b)
                {
                    break;
                }

            }
            Console.WriteLine(z);

        }
    }
}


namespace Bear_BigBrother
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, i;
            var line = Console.ReadLine();
            var data = line.Split(' ');

            a = int.Parse(data[0]);
            b = int.Parse(data[1]);

            for(i=1; ; i++)
            {
                a *= 3;
                b *= 2;
                if (a > b)
                {
                    break;
                }
            }

            Console.Write(i);
            Console.ReadKey();

        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication4", "ConsoleApplication4\ConsoleApplication4.csproj", "{A25265FE-7522-4CE2-B955-E6BA28AA2964}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{A25265FE-7522-4CE2-B955-E6BA28AA2964}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A25265FE-7522-4CE2-B955-E6BA28AA2964}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A25265FE-7522-4CE2-B955-E6BA28AA2964}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A25265FE-7522-4CE2-B955-E6BA28AA2964}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.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>{96BFE28D-E972-4268-8886-0212E7C0095E}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Gabriel_and_Worm</RootNamespace>
    <AssemblyName>Gabriel and Worm</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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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

 string s = Console.ReadLine();
        if(s.Contains("1111111") | s.Contains("0000000")
    {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}") = "CODE", "CODE\CODE.csproj", "{99C58CB9-8598-4A74-8689-3E4305926957}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|x86 = Debug|x86
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{99C58CB9-8598-4A74-8689-3E4305926957}.Debug|x86.ActiveCfg = Debug|x86
		{99C58CB9-8598-4A74-8689-3E4305926957}.Debug|x86.Build.0 = Debug|x86
		{99C58CB9-8598-4A74-8689-3E4305926957}.Release|x86.ActiveCfg = Release|x86
		{99C58CB9-8598-4A74-8689-3E4305926957}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
EndGlobal


using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Net.Sockets;
using System.Diagnostics;
using System.Linq;
using System.Threading;

static class Program
{
	static void Main()
	{
		string s = Console.ReadLine ();
		Console.Write (Math.Max(s.IndexOf("1111111"), s.IndexOf("0000000") >= 0 ? "YES" : "NO");
	}
}


class Program
{
    static void Main(string[] args)
    {
        string line = System.Console.ReadLine();
        int counter = 0;
        string last = "";
        for (int i = 0; i < line.Length && counter < 7; i++)
        {
            counter = last.Equals(line[i].ToString()) ? counter + 1 : 0;
            last = line[i];
        }
        System.Console.WriteLine(counter == 7 ? "YES" : "NO");
    }
}


class Program
{
    static void Main(string[] args)
    {
        string line = System.Console.ReadLine();
        int counter = 0;
        string last = "";
        for (int i = 0; i < line.Length && counter < 7; i++)
        {
            counter = last.Equals(line[i]) ? counter + 1 : 0;
            last = line[i];
        }
        System.Console.WriteLine(counter == 7 ? "YES" : "NO");
    }
}


namespace Football
{
    class Program
    {

        static void Main(string[] args)
        {

            string arreglo;
            int cont = 0;
            arreglo = (Console.ReadLine());
            for(int l=0; l < arreglo.Length-1; l++)
            {
                if (cont >= 6)
                {
                    break;
                }
                char letra1 = arreglo[l];
                char letra2 = arreglo[l + 1];

                if (letra1 == letra2)
                {
                    cont++;
                }
                if (letra1 != letra2)
                {
                    cont = 0;
                }

            }
            if (cont >= 6)
            {
                Console.WriteLine("YES");
            }
            if(cont< 6)
            {
                Console.WriteLine("NO");
            }

        }

    }
}


using System;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var players = Console.ReadLine();
            var dangerous = new string[] { "0000000", "1111111" };
            if (players.Contains('1') &&
                players.Contains('0') &&
                players.Length <= 100 &&
               ( players.Contains(dangerous[0]) || players.Contains(dangerous[1]))
                )
            {
                Console.WriteLine("YES");
            }
            Console.WriteLine("NO");
        }
    }
}


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


using System;

namespace JobApplications.Practice
{
    public class Next_Round___158A
    {

        static void Main(string[] args)
        {
            int n, k;

            string kn = Console.ReadLine();
            string[] inputs = kn.Split(" ");
            n = Int32.Parse(inputs[0]);
            k = Int32.Parse(inputs[1]);

            string scores = Console.ReadLine();
            string[] scInputs = scores.Split(" ");
            //Well...

            int[] sc = Array.ConvertAll(scInputs, int.Parse);

            int counter = 0;
            int con = sc[k - 1];
            for (int i = 0; i < n; i++)
            {
                if (sc[i] >= con && sc[i] > 0)
                    counter++;
            }
            Console.WriteLine(counter);

        }
    }
}


using System;
using System.Linq;

static void Main(string[] args)
        {
            var k_n = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            var num = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            var k = num[k_n[1]];
            Console.WriteLine(num.Count(x => x != 0 && x >= k));
        }


using System;
namespace NextRound
{
    class Next
    {
        static void main()
        {
            int A,B,C,F;
            A = Console.ReadLine();
            B = Console.ReadLine();
            for(int i = 1;i < A + 1;i++)
            {
                C = Console.ReadLine();
                if(C > B || C = B)
                {
                    F++;
                }
                i = A;
            }
            Console.WriteLine(F.ToString());
        }
    }
}


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

            int pos =a.IndexOf(' ');
            int n = int.Parse(a.Substring(0, pos));
            int k = int.Parse(a.Substring(pos+1));
            int[] b=new int[n];
            if (n >= 1 && n <= 50 && k >= 1 && k <= 50)
            {
                a = Console.ReadLine().Trim();
                for (int i = 0; i<n; i++){
                    pos = a.IndexOf(' ');
                    if (pos == -1)
                    {
                        b[i] = int.Parse(a);
                    }
                    else
                    {
                        b[i] = int.Parse(a.Substring(0, pos));
                    }
                    a = a.Substring(pos + 1);
                }
                int otv = 0;
                for (int i = 0; i < n; i++) {
                    if (b[i] >= b[k] && ((b[i] != 0 && b[k] != 0) || b[i] != 0))
                    {
                        otv++;
                    }
                    else break;
                }
                Console.WriteLine(otv.ToString());
            }
            else {
                Console.WriteLine("Error input!");
            }
            Console.ReadLine();

        }

    }


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

namespace prob4_Next_round
{
    class Program
    {
        static void Main(string[] args)
        {
            var inputs = Console.ReadLine();
            var contestantsScores = Console.ReadLine();

            var inputsSplit = inputs.Split(' ');
            var contestantsNumbern =Convert.ToInt32(inputsSplit[0]);
            var scoreK = Convert.ToInt32(inputsSplit[1]) ;

            var contestantsScoreSplit = contestantsScores.Split(' ');
            var countList = new List<int>();

            if (contestantsNumbern <= 50 && scoreK >= 1 ){
                var count = Count(scoreK);
                Console.WriteLine(count);

            }

            int Count ( int count )
            {
                foreach (var contestantScore in contestantsScoreSplit)
                {
                    if (contestantsScoreSplit.Length <= contestantsNumbern)
                    {
                        var intContestantScore = Convert.ToInt32(contestantScore);
                        int[] scoresArray = Array.ConvertAll(contestantsScoreSplit, int.Parse);
                        if (intContestantScore >= scoresArray[scoreK] && intContestantScore > 0 && intContestantScore <= 100)
                        {
                            countList.Add(intContestantScore);

                        }
                    }
                };
                count = countList.Count;
                return count;

            }
        }
    }
}


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

namespace CSharp_Shell
{

    public static class Program
    {
        public static void Main()
        {
          int k=0,p,m=0,u=0;
          string [] palo= Console.ReadLine().Split();
          int p1=int.Parse(palo[1]);
          p=int.Parse(palo[0]);
          string [] paloso=Console.ReadLine().Split();
          for(int z=0 ; z<p ; z++)
          {
              k=int.Parse(paloso[z]);
              if(k>p1 && k>=0)
              {
                  m++;
              }
              else
              {
                  if (paloso[z+1]>0 &&z+1!=p && paloso[z]==paloso[z+1])
                  {
                      u++;
                  }
                  if(paloso[z+1]>0 && z+1==p && paloso[z]==paloso[z-1])
                  {
                      u++;
                  }
              }
              if(u>=p/2)
              {
                  m=p;
              }
          }
          Console.WriteLine(m);
        }
    }
}


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

namespace Задача_А
{
    class Program
    {
        static void Main(string[] args)
        {
            List<MyClass> CL = new List<MyClass>();
            string a = Console.ReadLine();
            string[] b = a.Split();
            int Finale = 0;
            if (b.Count() == 2)
            {

                int n = Convert.ToInt32(b[0]);
                int k = Convert.ToInt32(b[1]);
                if (!(((n > k) || (n == k)) && (k >= 1) && (n <= 50)))
                {
                    Console.WriteLine("0");
                }
                else
                {
                    a = Console.ReadLine();
                    b = a.Split();
                    if (b.Count() < n) { Console.WriteLine("0"); }
                    else
                    {
                        for (int i = 0; !(i == b.Count()); i++)
                        {
                            CL.Add(new MyClass() { P = Convert.ToInt32(b[i]) });
                        }
                        for (int i = 0; !(i == CL.Count()); i++)
                        {
                            if (CL[i].P >= CL[k - 1].P)
                            {
                                Finale++;
                            }
                        }
                        Console.WriteLine(Finale);
                    }
                }
            }
            Console.ReadKey();
        }
    }
}
public class MyClass
{
    public int P;
}


using System;

namespace A_NextRound
{
    class Program
    {
        static void Main(string[] args)
        {
            string participants = Console.ReadLine();
            string[] nParticipants = participants.Split(" ");

            string scoreString = Console.ReadLine();
            string[] scores = scoreString.Split(' ');
            int c = 0;
            for (int i = 0; i < scores.Length; i++)
            {
                if (int.Parse(scores[i].ToString()) >= int.Parse(scores[int.Parse(nParticipants[1])-1].ToString()) && int.Parse(scores[i].ToString()) > 0)
                {
                    c++;
                }
            }
            Console.WriteLine(c);
        }
    }
}


using System;

public class Class1
{
    static public void Main()
    {
        string[] nk = Console.ReadLine().Split(' ');
        int n = int.Parse(nk[0]);
        int k = int.Parse(nk[1]);
        string[] tok = Console.ReadLine().Split(' ');
        int [] A=new int [n];
        for (int i = 0; i < n; i++)
            A[i] = int.Parse(tok[i]);
        for(int i=0;i<n;i++)
            for(int j=i+1;j<n;j++)
                if (A[i] < A[j])
                {
                    int tmp = A[i];
                    A[i] = A[j];
                    A[j] = tmp;
                }
        int k = A[k-1];
        int ans = 0;
        for (int i = 0; i < n; i++)
            if (A[i] > k&&A[i]) ans++;
        Console.WriteLine(ans);
    }
}


using System;
using System.Linq;

class Startup
{
    static void Main()
    {
        string input = Console.ReadLine();
        string newInput = "";
        bool oneIsFound = false;

        for (int i = 0; i < input.Length; i++)
        {
            if (oneIsFound)
            {
                newInput += input[i];
            }
            else
            {
                if (input[i] == '1')
                {
                    oneIsFound = true;
                }
            }
        }

            int zeroesCount = newInput.Count(f => f == '0');
            Console.WriteLine(zeroesCount > 5 ? "yes" : "no");
        }
    }
}


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

namespace Codeforces
{
   class A
   {
     static void Main(string[] args)
     {
        string s = Console.ReadLine();
        bool one = false;
        int z = 0;
        for(int i=0;i<n;i++){
          if(s[i]=='1'){
            one = true;
          }else{
            z++;
          }
        }
        if(one && z>=6){
          Console.WriteLine("yes");
        }else{
          Console.WriteLine("no");
        }
     }
   }
}


Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeForces", "CodeForces\CodeForces.csproj", "{50F6CA0F-3B5E-48D3-9012-35DFCE5D35A1}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|x86 = Debug|x86
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{50F6CA0F-3B5E-48D3-9012-35DFCE5D35A1}.Debug|x86.ActiveCfg = Debug|x86
		{50F6CA0F-3B5E-48D3-9012-35DFCE5D35A1}.Debug|x86.Build.0 = Debug|x86
		{50F6CA0F-3B5E-48D3-9012-35DFCE5D35A1}.Release|x86.ActiveCfg = Release|x86
		{50F6CA0F-3B5E-48D3-9012-35DFCE5D35A1}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;
using System.Text;
using System.Linq;

void Main()
{
	// Cases
	// d1, d3, d2
	// d1, d3, d3, d1
	// d2, d3, d3, d2
	// d1, d1, d2, d2

	int[] l = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();

	Console.WriteLine(new[]
	{
		l[0] + l[2] + l[1],
		l[0] + l[2] + l[2] + l[0],
		l[1] + l[2] + l[2] + l[1],
		l[0] + l[0] + l[1] + l[1],
	}
	.Min());
}


namespace _996a
{
	class Program
	{
		static void Main(string[] args)
		{
			long n = Convert.ToInt32(Console.ReadLine());
			long num = n / 100 + (n % 100)/20 + (n % 100 % 20)/5 + (n % 100 % 20 % 5);
			Console.WriteLine(num);
		}
	}
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.421
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp39", "ConsoleApp39\ConsoleApp39.csproj", "{2B6A6B94-9759-400A-8CF9-A38BF67C72B6}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{2B6A6B94-9759-400A-8CF9-A38BF67C72B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{2B6A6B94-9759-400A-8CF9-A38BF67C72B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{2B6A6B94-9759-400A-8CF9-A38BF67C72B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{2B6A6B94-9759-400A-8CF9-A38BF67C72B6}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {04AE9A66-327A-4ADF-9CC1-B809EB3D9E32}
	EndGlobalSection
EndGlobal


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

namespace Allen
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int quantityOFcash = 0;
            while(n - 100 >= 0)
            {
                if (n - 100 >= 0)
                {
                    quantityOFcash++;
                    n -= 100;
                }
            }
            while (n - 20 >= 0)
            {
                if (n - 20 >= 0)
                {
                    quantityOFcash++;
                    n -= 20;
                }
            }
            while (n - 10 >= 0)
            {
                if (n - 10 >= 0)
                {
                    quantityOFcash++;
                    n -= 10;
                }
            }
            while (n - 5 >= 0)
            {
                if (n - 5 >= 0)
                {
                    quantityOFcash++;
                    n -= 5;
                }
            }
            while (n - 1 >= 0)
            {
                if (n - 1 >= 0)
                {
                    quantityOFcash++;
                    n -= 1;
                }
            }
            Console.WriteLine(quantityOFcash);
        }
    }


using ConsoleApplication3;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;

public class MainClass
{
    private static object lockFile = new object();

    public static void Main(string[] args)
    {
        int[] money = { 100, 20, 10, 5, 1 };

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

        int count = 0;

        while (n>0)
        {
            for (int i = 0; i < money.Length; i++)
            {
                if(n>=money[i])
                {
                    int times = n / money[i];
                    count += times;
                    n -= times * money[i];
                }
            }
        }
        Console.WriteLine(count);
      //  Console.ReadKey();
    }

    private static long Fib(int n)
    {
        long[] fib = new long[n + 1];

        fib[0] = 0;
        fib[1] = 1;

        for (int i = 2; i < fib.Length; i++)
        {
            fib[i] = fib[i - 1] + fib[i - 2];
        }

        return fib[n];
    }
    private static long Fib2(int n)
    {
        long first = 0;
        long second = 1;

        long current = 0;

        for (int i = 0; i <= n - 2; i++)
        {
            current = first + second;
            first = second;
            second = current;
        }

        return current;
    }

    private static int[] mergeTwoArrays(int[] a, int[] b)
    {
        int[] result = new int[a.Length + b.Length];

        int left = 0;
        int right = 0;

        for (int i = 0; i < result.Length; i++)
        {
            if (left < a.Length && (right >= b.Length || a[left] <= b[right]))
            {
                result[i] = a[left];
                left++;
            }
            else
            {
                result[i] = b[right];
                right++;
            }
        }

        return result;
    }

    private static bool isPalindrome(string s)
    {
        for (int i = 0; i < s.Length; i++)
            if (s[i] != s[s.Length - i - 1])
                return false;

        return true;
    }

    private static long sumOfNumbers(long n)
    {
        long sum = 0;

        while (n > 0)
        {
            sum += n % 10;
            n /= 10;
        }

        return sum;
    }
    private static long gcd(long a, long b)
    {
        return b == 0 ? a : gcd(b, a % b);
    }
    private static long[] getPowersOfTwoAnotherMethod()
    {
        long[] array = new long[63];

        for (int i = 0; i < array.Length; i++)
        {
            array[i] = (long)Math.Pow(2, i);
        }

        return array;
    }

    private static void testOut(out int n)
    {
        n = 10;
        throw new InvalidOperationException("Inner exception");
    }

    private static string toBinary(BigInteger n)
    {
        string res = "";

        while (n > 0)
        {
            res = n % 2 + res;
            n /= 2;
        }

        return res;
    }

    private static bool checkTheNumber(int n)
    {
        string binary = toBinary(n);

        return binary.Any(c => c == '0');
    }

    private static int findPosition(string[] array, int currentPosition)
    {
        for (int i = currentPosition; i < array.Length; i++)
        {
            if (array[i] == null) return i;
        }

        return -1;
    }

    private static int findPosition(int currentPosition, string[] array) => 0;

    private static void Foo(StringBuilder fooSb)
    {
        fooSb.Append("In method");
        fooSb = null;
    }

    protected static void TimerOnElapsed(object sender, ElapsedEventArgs elapsedEventArgs)
    {
        int i = 0;
        Console.ForegroundColor = ConsoleColor.Red;
        Console.WriteLine(i++);
    }

    static void wrintInFile(char letter, int times, int sleepTime)
    {
        for (int i = 0; i < times; i++)
        {
            lock (lockFile)
            {
                using (StreamWriter writer = new StreamWriter("output.txt", true))
                {
                    writer.WriteLine($"{letter}\t{Thread.CurrentThread.ManagedThreadId}\t{DateTime.Now}");
                }

                Thread.Sleep(sleepTime);
            }
        }
    }

    private static async Task<int> Test(int n)
    {
        Console.WriteLine("Inside await");

        int res = 0;

        await Task.Run(() =>
        {
            for (int i = 0; i < n; i++)
            {
                res += i * i;
                Thread.Sleep(i);
            }
        });

        return res;
    }

    public static void getDirectories(string path)
    {
        DirectoryInfo directoryInfo = new DirectoryInfo(path);

        Console.WriteLine(directoryInfo.FullName);
        PrintAllFileNamesInDirectory(0, directoryInfo.GetFiles());

        DirectoryInfo[] directories = null;

        try
        {
            directories = directoryInfo.GetDirectories();

            foreach (var d in directories)
            {
                getDirectories(d.FullName);
            }
        }
        catch (Exception e)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("COULD NOT HAVE ACCESS TO FOLDER");
        }

    }

    public static void PrintAllFileNamesInDirectory(int numberOfSpaces, FileInfo[] files)
    {
        foreach (FileInfo dir in files)
        {
            Console.WriteLine($"{new string('\t', numberOfSpaces)} {dir.FullName}");
        }

    }

}


using System;
using static System.Math;
using System.Linq;

namespace ConsoleApplication
{
    sealed class Program
    {
        static void Main(string[] args)
        {
            var n = Int64.Parse(Console.ReadLine());
            mem = new int[n + 1];
            Console.WriteLine(F(n));
        }

        private static long[] mem;

        static long F(long n)
        {
            if (n < 0)
                return 1000000;
            if (n % 100 == 0)
                return n / 100;
            if (n == 1)
                return 1;
            if (mem[n] == 0)
                mem[n] = Min(Min(F(n - 1), F(n - 5)), Min(Min(F(n - 10), F(n - 20)), F(n - 100))) + 1;
            return mem[n];
        }
    }
}


using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;

namespace TestConsole
{
    public class Program
    {
        static void Main(string[] args)
        {
            var money = long.Parse(Console.ReadLine());
            Console.WriteLine(CalculateLottery(money));
        }

        private static long CalculateLottery(long money)
        {
            long billCount = 0;
            var bills = new[] { 100, 20, 10, 5, 1 };

            foreach (var bill in bills)
            {
                while (money > 0)
                {
                    var count = money / bill;
                    money -= count * bill;
                    billCount += count;
                }
            }

            return billCount;
        }
    }
}


using System;

static int main(string[] args)
{
    var inputString = Console.ReadLine();
    var inputArray = inputString.Split();

    var s = int.Parse(inputArray[0]);
    var v1 = int.Parse(inputArray[1]);
    var v2 = int.Parse(inputArray[2]);
    var t1 = int.Parse(inputArray[3]);
    var t2 = int.Parse(inputArray[4]);

    var firstResult = s * v1 + 2 * t1;
    var secondResult = s * v2 + 2 * t2;

    if(firstResult == secondResult)
    {
        Console.WriteLine("Friendship");
    }else{
        if(firstResult < secondResult) {
            Console.WriteLine("First");
        }else{
            Console.WriteLine("Second");
        }
    }

}


using System;
using System.Test;

public class Program
{
    public static bool isCapsLock(string s)
    {
        if (!Char.IsLower(s[0])) return false;

        for (int i = 1; i < s.Length; i++)
        {
            if (!Char.IsUpper(s[i])) return false;
        }

        return true;
    }

    public static string fix(string s)
    {
        string ss = Char.ToUpper(s[0]);
        for (int i = 1; i < s.Length; i++) ss += Char.ToLower(s[i]);
        return ss;
    }

    public static void Main()
    {
        string word = Console.ReadLine();
        if (isCapsLock(word)) Console.WriteLine(fix(word));
        else Console.WriteLine(word);
    }
}


using System;
class Task
{
    static void Main()
    {
        int n=int.Parse(Console.ReadLine());
        for(int i=0;i<n;i++)
        {

            int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
            int cnt=0;
            int n1=a[0];
            int n2=a[1];
            if(n1 % n2)
            {
               Console.WriteLine(cnt);

            }
            else
            {
            while(n1 % n2 !=0)
            {
                n1+=1;
                cnt+=1;
            }
            Console.WriteLine(cnt);
            }
        }

    }

}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Globalization;
using System.Timers;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using System.Xml.XPath;
using System.IO;
using System.Reflection;
using System.Reflection.Emit;
using System.Windows.Forms;
using System.Configuration;
using System.Drawing;
using System.Net;
using System.Data;
using System.Collections.Concurrent;
using System.Threading.Tasks;
using System.Threading;
using System.Web;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Collections.ObjectModel;
using System.Data.SqlClient;

namespace Current
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            if (char.IsLower(s[0]) && s.Substring(1).All(ch => char.IsUpper(ch)))
                s = s.Substring(0, 1).ToUpper() + s.Substring(1).ToLower();
            Console.WriteLine(s);
        }
    }
}


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

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

            bool isAllUpper = input.All(char.IsUpper);

            bool convertLetter = isAllUpper;

            string temp = string.Empty;

            if (!isAllUpper)
            {
                temp = input.Substring(1, input.Length - 1);
                convertLetter = temp.All(Char.IsUpper);
            }

            if (convertLetter)
            {
                Console.WriteLine(Char.ToUpper(input[0]) + temp.ToLower());
            }
            else
            {
                Console.WriteLine(input);
            }

        }
    }
}


static void Main(string[] args)
        {
            System.String text = System.Console.ReadLine();
            text.ToLower();
            System.String[] a = new string[100];
            for (int i = 0; i < text.Length; i++)
            {
                a[i] = text[i].ToString();
                a[i]=a[i].ToLower();
            }
            a[0]=a[0].ToUpper();
            for (int i = 0; i < text.Length; i++)
                System.Console.Write(a[i]);
        }
    }


using System;
using System.Test;

public class Program
{
    public static bool isCapsLock(string s)
    {
        if (!Char.IsLower(s[0])) return false;

        for (int i = 1; i < s.Length; i++)
        {
            if (!Char.IsUpper(s[i])) return false;
        }

        return true;
    }

    public static string fix(string s)
    {
        string ss = (string)Char.ToUpper(s[0]);
        for (int i = 1; i < s.Length; i++) ss += (string)Char.ToLower(s[i]);
        return ss;
    }

    public static void Main()
    {
        string word = Console.ReadLine();
        if (isCapsLock(word)) Console.WriteLine(fix(word));
        else Console.WriteLine(word);
    }
}


using System;

public class Program
{
	public static void Main()
	{
		solve_822A();
	}

	public static void solve_822A()
	{
		string[] tests = Console.ReadLine().Split(' ');

		int a = Convert.ToInt32(tests[0]);
		int b = Convert.ToInt32(tests[b]);

		int min = Math.Min(a, b);

		long facNum1 = factorial(min);
		long facNum2 = factorial(b + 1);

		long result = gcd(facNum1, facNum2);

		Console.WriteLine(result);
	}

	public static long factorial(int n)
	{
		if (n <= 1)
		{
			return 1;
		}
		return n * factorial(n - 1);
	}

	public static long gcd(long a, long b)
	{
		if (b == 0)
		{
			return a;
		}
		return gcd(b, a % b);
	}
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.421
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeforcesProject001", "CodeforcesProject001\CodeforcesProject001.csproj", "{8C8257BA-08C0-43E0-9A62-21B5EF3A3A7B}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{8C8257BA-08C0-43E0-9A62-21B5EF3A3A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{8C8257BA-08C0-43E0-9A62-21B5EF3A3A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{8C8257BA-08C0-43E0-9A62-21B5EF3A3A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{8C8257BA-08C0-43E0-9A62-21B5EF3A3A7B}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {C9CCF345-912D-44B9-B6E4-4DDCF2B20D76}
	EndGlobalSection
EndGlobal


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

public static class XXX
{
    private static void Main()
    {
        int counter =0;
        string str = Console.ReadLine().ToLower();
        foreach(var x in str){
            if(x>='A' && x<='Z'){
                counter++;
            }
        }
        if(counter>str.Length/2){
            Console.WriteLine(str.ToUpper());
        }
        else Console.WriteLine(str.ToLower());
        return 0;
    }
}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" 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>{C2E7397A-392F-45BB-80DC-0274A7AA106C}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>Word</RootNamespace>
    <AssemblyName>Word</AssemblyName>
    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  </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.Net.Http" />
    <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" />
</Project>


using System;
using System.Collections.Generic;
using System.Text;
using CodeForces.FrequentlySolved;

namespace CodeForces
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            //var T = Convert.ToInt32(Console.ReadLine());
            //for (int i = 1; i <= T; i++)
            //{
            //    var inputStr = Console.ReadLine();
            //    var result = StringManipulationTask(inputStr);
            //    Console.WriteLine(result);
            //}
            var input = Console.ReadLine();
            var output = UpperCaseLowerCase(input);
            Console.WriteLine(output);
        }

        public static string UpperCaseLowerCase(string str)
        {
            int upperCaseCount = 0, lowerCaseCount = 0;
            var upperCaseStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            var lowerCaseStr = upperCaseStr.ToLower();
            foreach (var ch in str)
            {
                if (upperCaseStr.Contains(ch.ToString()))
                    ++upperCaseCount;
                if (lowerCaseStr.Contains(ch.ToString()))
                    ++lowerCaseCount;
            }
            return upperCaseCount > lowerCaseCount ? str.ToUpper() : str.ToLower();
        }

        public static string StringManipulationTask(string s)
        {
            var vowels = new List<char> { 'a', 'e', 'i', 'o', 'u' };
            char[] input = s.ToLower().ToCharArray();
            var result = "";
            foreach (char c in input)
            {
                if (!vowels.Contains(c))
                {

                    result += '.';
                    result += c;
                }
            }
            return result;
        }
    }
}


using System;

static class Program
{
    static void Main()
    {
        var ar = Console.Readline().Split();
        Console.WriteLine(int.Parse(ar[0]) > int.Parse(ar[1]) ? "Second" : "First");
    }
}


using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int sum = 0;
            int[] data = Array.ConvertAll(Console.ReadLine().Split(' '), Int32.Parse);
            for(int i=1;i<=data[2];i++)
            {
                sum += i;
            }
            if (sum * data[0] - data[1] > 0) {
                Console.Write((sum * data[0] - data[1]); }
            else Console.WriteLine(0);
        }
    }
}


using System;

namespace CF_SoldierAndBanana {
    class Program {
        static void Main(string[] args) {
            string[] inputs = Console.ReadLine().Split(' ');
            ushort startprice = Int16.Parse(inputs[0]);
            ushort cash = Int16.Parse(inputs[1]);
            ushort bananacount = Int16.Parse(inputs[2]);
            int sum = 0;
            sum = startprice*bananacount * (bananacount + 1) / 2;
            if (sum > cash) {
                Console.WriteLine(sum - cash);
                return;
            }
            Console.WriteLine(0);
        }
    }
}


using System;
using System.Linq;

namespace _546A
{
    class Program
    {
        static void Main()
        {
            var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var Money = input[0] * input[2] * (input[2] + 1) / 2 - input[1];
            Console.WriteLine(Money > 0 ? Money : 0);
        }
    }


private static int SoldierBananna(int k, int n, int w)
        {
            int sum = k*(w+1)*w/2;
            return Math.Max(0, sum-n);

        }


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

namespace ConsoleApplication252
{
    class Program
    {

        static void Main()
        {
            string[] ss = Console.ReadLine().Split();
            int a = int.Parse(ss[0]);
            int b = int.Parse(ss[1]);
            if (a >= b)
            {
                Console.WriteLine(a - );
                return;
            }
            int x = 0;
            int y = 0;

            List<int> d = new List<int>();
            d.Add(a);
            for (int i = 0; x != b || y != b; i++)
            {
                x = d[i] - 1;
                y = d[i] * 2;
                d.Add(x);
                d.Add(y);
                if (x == b || y == b)
                {
                    break;
                }
            }
            int p = 1;
            int k = 1;
            int q = 0;
            for (int i = 2; true; i *= 2)
            {
                for (int e = p; e <= p + i - 1; e++)
                {
                    q = e;
                    if (d[e] == b)
                    {
                        Console.WriteLine(k);
                        return;
                    }
                }
                k++;
                p = q + 1;
            }
        }
    }
}


using Microsoft.VisualBasic.CompilerServices;
using System;

namespace Lesson13_CSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string t = Console.ReadLine();
            bool isTranslated = true;
            for (int i = 0; i < s.Length; i++)
            {
                if (s[i] != t[t.Length - 1 - i])
                {
                    isTranslated = false;
                }
            }

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


using System;
using System.Text;

namespace CF
{
    class Program
    {
        static void Main(string[] args)
        {
            string input1 = Console.ReadLine();
            string input2 = Console.ReadLine();
            Console.WriteLine(Solver(input1 , input2));

        }

        public static string Solver(string input1 , string input2) {

            if (input1.Length == input2.Length) { }
                for (int i = 0; i < input1.Length; i++)
                {
                    if (input1[i] != input2[(input1.Length - 1) - i])
                        return "NO";
                }

            return "YES";
        }
        else return "NO";

        }
    }
}


public string trans(string s, string t)
        {
            string result = "NULL";
            int n = (s.Length);
            char[] S = s.ToCharArray();
            char[] T = t.ToCharArray();

            for (int i = 0; i < n; i++)
            {
                if (S[i] != T[n - i - 1])
                {
                    result = "NO";
                    break;
                }
                else
                    result = "YES";
            }

            return result;
        }


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication8", "ConsoleApplication8\ConsoleApplication8.csproj", "{3C711736-57CC-4164-8235-27B756DAE767}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{3C711736-57CC-4164-8235-27B756DAE767}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{3C711736-57CC-4164-8235-27B756DAE767}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{3C711736-57CC-4164-8235-27B756DAE767}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{3C711736-57CC-4164-8235-27B756DAE767}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;
using System.Text;

namespace CF
{
    class Program
    {
        static void Main(string[] args)
        {
            string input1 = Console.ReadLine();
            string input2 = Console.ReadLine();
            Console.WriteLine(Solver(input1 , input2));
            Console.ReadLine();
        }

        public static string Solver(string input1 , string input2) {

            if (input1.Length == input2.Length) { }
                for (int i = 0; i < input1.Length; i++)
                {
                    if (input1[i] != input2[(input1.Length - 1) - i])
                        return "NO";
                }

            return "YES";
        }
        else return "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 ;
            string m ;
            if (m == Reverse(n))
            {
                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");
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sleuth", "Sleuth\Sleuth.csproj", "{07CE28F7-8E8A-4E2B-BC41-0E80EED8755F}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{07CE28F7-8E8A-4E2B-BC41-0E80EED8755F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{07CE28F7-8E8A-4E2B-BC41-0E80EED8755F}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{07CE28F7-8E8A-4E2B-BC41-0E80EED8755F}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{07CE28F7-8E8A-4E2B-BC41-0E80EED8755F}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;

public class CodeForces
{
    public static void Main(string[] args)
    {
        int n = int.Parse(Console.ReadLine());
        int[] c = new int[n];
        for (int i = 0; i < n; ++i)
        {
            c[i] = 1;
        }
        while (n > 1)
        {
            for (int i = 1; i < n; ++i)
            {
                c[i] = c[i - 1] + c[i];
            }
            --n;
        }
        return c[n - 1];
    }
}


using System;
using System.Linq;
public class Program
{

    public static void Main()
    {
		int[][] arr = new int[10,10];
		int a = int.Parse(Console.ReadLine());
		for (int i = 0; i < a; i++) {
			for (int j = 0; j < a; j++) {
				if (i == 0) {
					arr[i][j] = 1;
				} else if (j == 0) {
					arr[i][j] = 1;
				} else {
					arr[i][j] = arr[i - 1][j] + arr[i][j - 1];
				}
			}
		}
		Console.WriteLine(arr[a - 1][a - 1]);
    }
}


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

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

            string[] data = Console.ReadLine().Split(' ');

            int n = Convert.ToInt32(data[0]); // зайцы от 1 до 50
            int m = Convert.ToInt32(data[1]); // фишки от 1 до 104
            int check = 1;

            for (int i = 0; i < n; i++)
            {
                if (check == 1)
                {
                    for (int y = 1; y <= n; y++)
                    {
                        if (m >= y)
                        {
                            m = m-y;
                        }
                        else
                        {
                            check = 0;
                            break;
                        }
                    }
                }
                else { break; }
            }

            Console.WriteLine(e);
        }
    }
}


using System;
namespace CodeForces
{
    class MainClass
    {
        public static void Main(string[] args)
        {
        int n = Convert.ToInt32 (Console.ReadLine());
        string s,new_s;
        s = Console.ReadLine();
        new_s = s.Replace(" ", "");
        int Ind = 0;
        for (int i=0; i <= n)
        {
            if(new_s[i] == '1')
            {
                Console.WriteLine("HARD");
                Ind = 1;
                break;
            }
            i++;
        }
        if (Ind == 0)
        {
            Console.WriteLine("EASY");
        }
        }

    }
}


using System;

namespace Algoritmos
{
    class Program
    {
        static void Main(string[] args)
        {
            int person = Int32.Parse(Console.ReadLine());
            String[] decision = Console.ReadLine().Split(" ");
            String input = "";

            for (int i = 0; i < person; i++)
            {
                if (decision[i] == "0")
                {
                    input = "Easy";
                }
                else
                {
                    input = "Hard";
                }

            }

            Console.WriteLine(input);
        }
    }
}


using System;

namespace Algoritmos
{
    class Program
    {
        static void Main(string[] args)
        {
            int person = Int32.Parse(Console.ReadLine());
            String[] decision = Console.ReadLine().Split(" ");
            String input = "Easy";

            for (int i = 0; i < person; i++)
            {
                if (decision[i] == "1")
                {
                    input = "Hard";
                }

            }

            Console.WriteLine(input);
        }
    }
}


using system;

namespace Tassel
{
	class Program
	{
		public static void main()
		{
			int x;
			int[] d = new int[3];
			x = Convert.ToInt32 (Console.ReadKey ());

			for(int i = 0; i < x; i++){
				d[i] = Convert.ToInt32 (Console.ReadKey ());
			}
			for(int i = 0; i < x; i++){
				if(d[i] == 1){
					Console.WriteLine ("HARD");
				}
				if(d[x-1] == 0){
					return;
				}
			}
			Console.WriteLine ("EASY");
		}
	}
}


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

namespace Backery
{

    class Program
    {

  static string Decission(int Number, int[] NuRepeate)
        {
            for (int i = 0; i < NuRepeate.Length; i++)
            {
                if (NuRepeate[i] == 1)
                {
                    return "Hard";
                }

            }

            return "Easy";
        }

        static void Main(String[] args)
        {

           inint x = int.Parse(Console.ReadLine());
            int[] _data = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();

            string Result =Decission(x, _data);
                      Console.WriteLine(Result);

        }
	}
}


static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            string o = Console.ReadLine();
            o = o.Replace(" ", string.Empty);
            int In = o.IndexOf("1");
            if(In>=0)
                {
                Console.WriteLine("HARD");
                }
            else
                {
                Console.WriteLine("EASY");
                }
            Console.ReadLine();
        }


using System;
using System.Linq;

namespace Olymp {
	internal static class Program {
		private static void Main() {
			byte people = byte.Parse(Console.ReadLine());
			string[] results = Console.ReadLine()?.Split(' ', StringSplitOptions.RemoveEmptyEntries).Where(x => x.Length == 1).Take(people).ToArray();
			Console.WriteLine(results?.Any(x => x == "1") == true ? "HARD" : "EASY");
		}
	}
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{0DC4D2A4-BD36-4C11-A030-0F9BE308EE6D}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{0DC4D2A4-BD36-4C11-A030-0F9BE308EE6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0DC4D2A4-BD36-4C11-A030-0F9BE308EE6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0DC4D2A4-BD36-4C11-A030-0F9BE308EE6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0DC4D2A4-BD36-4C11-A030-0F9BE308EE6D}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {B564C466-FE69-42A5-9E1E-F8F31B291C14}
	EndGlobalSection
EndGlobal


class Decision
    {
        List<short> answers = new List<short>();
        private short numberOfAnswers = 0;
        private short answer=-1;

        public int EnterInputs()
        {
            int ans = -1;
            numberOfAnswers = Convert.ToInt16(Console.ReadLine());
            if (numberOfAnswers < 1 || numberOfAnswers > 100)
                ans= -1;
            else
            {
                while(numberOfAnswers>0)
                {
                    AddAnswer();
                    numberOfAnswers--;
                }
                ans = 0;
            }
            return ans;
        }

        private void AddAnswer()
        {
            answer=Convert.ToInt16(Console.ReadLine());
            if(answer==1 || answer==0)
                answers.Add(answer);

        }

        private bool Level()
        {
            short sum=0;
            foreach(var ans in answers)
                sum+=ans;
            if(sum<=0)
                return false;
            else
                return true;
        }

        public string MakeLevel()
        {
            if (Level())
                return "HARD";
            else
                return "EASY";
        }
    }

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

            Decision decision = new Decision();
            int d= decision.EnterInputs();

            if(d!=-1)
            {
                Console.WriteLine("{0}",decision.MakeLevel());
            }
            Console.ReadLine();

        }
    }


class Program
    {
        static void Main(string[] args)
        {
            string[] temp = Console.ReadLine().Split(' ');
            int n = Convert.ToInt32(temp[0]);
            int k = Convert.ToInt32(temp[1]);
            string line = Console.ReadLine();
            int i, j, g, t,fl=0;
            g = line.IndexOf('G');
            t = line.IndexOf('T');
            if (g < t)
            {
                for (i = g+k; i <= t; i+=k)
                {
                    if (line[i] == '.')
                        continue;
                    else if (line[i] == '#')
                    {
                        Console.Write("NO");
                        fl = -1;
                        break;
                    }
                    else
                    {
                        Console.Write("YES");
                        fl = 1;
                        break;
                    }
                }
                if (fl == 0)
                    Console.Write("NO");
            }
            else if (g > t)
            {
                for (i = g-k; i >= t; i -= k)
                {
                    if (line[i] == '.')
                        continue;
                    else if (line[i] == '#')
                    {
                        Console.Write("NO");
                        fl = -1;
                        break;
                    }
                    else
                    {
                        Console.Write("YES");
                        fl = 1;
                        break;
                    }
                }
                if (fl == 0)
                    Console.Write("NO");
            }
            else
                Console.Write("YES");

        }
    }


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "A", "A\A.csproj", "{72C18F33-1F07-490F-98D2-4940AA438842}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{72C18F33-1F07-490F-98D2-4940AA438842}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{72C18F33-1F07-490F-98D2-4940AA438842}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{72C18F33-1F07-490F-98D2-4940AA438842}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{72C18F33-1F07-490F-98D2-4940AA438842}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal