int col;
            int[] num = new int[] { };
            int sub = 0;

            col = int.Parse(Console.ReadLine());
            string[] space = Console.ReadLine().Split(' ');
            num = space.Select(s => int.Parse(s)).ToArray();

            if (num.Length == col)
            {
                for(int j = 0; j < col; j++)
                {
                    for (int i = 0; i < num.Length - 1; i++)
                    {
                        if (num[i] > num[i+1])
                        {
                            sub = num[i] - num[i + 1];
                            num[i] = num[i + 1];
                            num[i + 1]+=sub;
                        }
                    }
                }
            }
            for (int i = 0; i < num.Length; i++)
            {
                Console.Write(num[i]);
                Console.Write(' ');
            }


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpplib", "cpplib\cpplib.vcxproj", "{481E5440-D03D-52B1-92EC-E95F3BB538AA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cf405A", "cf405A\cf405A.csproj", "{26BDD1BC-A98F-4009-BCC4-484A14493A33}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "submission", "submission\submission.csproj", "{CBFC56C2-D451-4E93-A8D6-960AE5182B85}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|Win32 = Debug|Win32
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Debug|Any CPU.ActiveCfg = Debug|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Debug|Mixed Platforms.Build.0 = Debug|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Debug|Win32.ActiveCfg = Debug|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Debug|Win32.Build.0 = Debug|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Release|Any CPU.ActiveCfg = Release|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Release|Mixed Platforms.ActiveCfg = Release|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Release|Mixed Platforms.Build.0 = Release|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Release|Win32.ActiveCfg = Release|Win32
		{481E5440-D03D-52B1-92EC-E95F3BB538AA}.Release|Win32.Build.0 = Release|Win32
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Debug|Win32.ActiveCfg = Debug|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Release|Any CPU.Build.0 = Release|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{26BDD1BC-A98F-4009-BCC4-484A14493A33}.Release|Win32.ActiveCfg = Release|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Debug|Win32.ActiveCfg = Debug|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Release|Any CPU.Build.0 = Release|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{CBFC56C2-D451-4E93-A8D6-960AE5182B85}.Release|Win32.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            var first = int.Parse(Console.ReadLine());
            var second = Console.ReadLine()
                .Split(new char[] {' '})
                .Select(x => int.Parse(x))
                .ToArray();

            Array.Sort(second);

            Console.WriteLine(string.Join(' ', second));
        }

    }
}


using System;
using System.Collections.Immutable;
using System.Linq;

namespace repos
{
    class Program
    {
        static void Main(string[] args)
        {
            int colNum=int.Parse(Console.ReadLine());
            string[] CubsPerCol=Console.ReadLine().Split(' ');
            Array.Sort(CubsPerCol);
            Console.WriteLine(CubsPerCol);
        }
    }
}


<?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>{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>sscsharp</RootNamespace>
    <AssemblyName>sscsharp</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>


#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	char a[100];
	cin >> a;
	int k = strlen(a);
	char c;
	for (int i = 0; i < k; i++)
	{
		for (int j = i + 1; j < k; j++)
		{
			if (a[j] == a[i])
			{
				for (int q = j; q < k; q++)
				{
					c = a[q];
					a[q] = a[q + 1];
					a[q + 1] = c;
				}
			}
		}
	}
	if (strlen(a) % 2 == 0)
		cout << "CHAT WITH HER!" << endl;
	else
		cout << "IGNORE HIM!"<< endl;
	return 0;
}


using System;

using namespace Program {
    public int Main(string [] args)
    {
	string input = Console.ReadLine();
	char [] allLetters = new char[26];
	int counter = 0;
	for(int i = 0; i < input.Length; i++){
        bool has_been_met = false;
        for(int j = 0; j < 26; j++){
            if(input[i] == allLetters[j]){
                has_been_met = true;
                break;
            }
        }
        if(!has_been_met){
            allLetters[counter] = input[i];
            counter++;
        }
    }

    if(counter % 2 == 1){
        Console.WriteLine("IGNORE HIM!");
    }
    else{
        Console.WriteLine("CHAT WITH HER!");
    }
    return 0;
}

}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30517.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project_1", "project_1\project_1.csproj", "{CE44CD45-BAC5-4898-9357-CE31FCCD19E5}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{CE44CD45-BAC5-4898-9357-CE31FCCD19E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{CE44CD45-BAC5-4898-9357-CE31FCCD19E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{CE44CD45-BAC5-4898-9357-CE31FCCD19E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{CE44CD45-BAC5-4898-9357-CE31FCCD19E5}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {BE4ACFC1-D259-40F4-8705-1B85F3EC5F49}
	EndGlobalSection
EndGlobal


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}") = "helloWorld", "helloWorld\helloWorld.csproj", "{B1F03B32-50D4-47AF-AE12-FED53B16E9C7}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{B1F03B32-50D4-47AF-AE12-FED53B16E9C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B1F03B32-50D4-47AF-AE12-FED53B16E9C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B1F03B32-50D4-47AF-AE12-FED53B16E9C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B1F03B32-50D4-47AF-AE12-FED53B16E9C7}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;

public class Program
{
	public static void Main()
	{

           string s;
            s = Console.ReadLine();

            string temp = "";
            int count = 0;
            for(int i=0;i<s.Length;i++)
            {
                if (!temp.Contains(s[i]))
                {

                    temp += s[i];
                    count++;

                }
                else

                    continue;

            }

            if (count % 2 == 0)

            {
                Console.WriteLine("CHAT WITH HER!");

            }

            else
            {
                Console.WriteLine("IGNORE HIM!");

            }

            Console.ReadLine();

	}

}


using System;
using System.Collections.Generic;

static void Main(string[] args)
         {
             string S = Console.ReadLine();
             int k = get_distinct(S);
             if (k%2 == 0)
                 Console.WriteLine("CHAT WITH HER !");
             else
                 Console.WriteLine("IGNORE HIM !");
         }
         static  int get_distinct( string s)
         {
             List<char> Lc = new List<char>();
             foreach (char ch in s)
             {
                 if ((Lc.FindIndex(i => i== ch)) == -1 )
                     Lc.Add(ch);
             }
             return Lc.Count;
         }


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.15
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LuckyDivision", "LuckyDivision\LuckyDivision.vcxproj", "{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoyOrGirl", "BoyOrGirl\BoyOrGirl.csproj", "{CF41694B-EEA7-4E1D-8A4F-9027606E572E}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|x64 = Debug|x64
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|x64 = Release|x64
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Debug|Any CPU.ActiveCfg = Debug|Win32
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Debug|x64.ActiveCfg = Debug|x64
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Debug|x64.Build.0 = Debug|x64
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Debug|x86.ActiveCfg = Debug|Win32
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Debug|x86.Build.0 = Debug|Win32
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Release|Any CPU.ActiveCfg = Release|Win32
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Release|x64.ActiveCfg = Release|x64
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Release|x64.Build.0 = Release|x64
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Release|x86.ActiveCfg = Release|Win32
		{CA47A45E-8C26-4E88-8A23-D38095E1FB2A}.Release|x86.Build.0 = Release|Win32
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|x64.ActiveCfg = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|x64.Build.0 = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|x86.ActiveCfg = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Debug|x86.Build.0 = Debug|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|Any CPU.Build.0 = Release|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|x64.ActiveCfg = Release|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|x64.Build.0 = Release|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|x86.ActiveCfg = Release|Any CPU
		{CF41694B-EEA7-4E1D-8A4F-9027606E572E}.Release|x86.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {720AA6E5-E831-41EA-82F6-D02798FB99F7}
	EndGlobalSection
EndGlobal


using System;
using System.Collections.Generic;

namespace Rank
{
    class Program
    {
        static void Main(string[] args)
        {
            string str1 = Console.ReadLine();
            string newstr1 = "";
            for (int i = 0; i < str1.Length ; i++)
            {
                if (newstr1.Contains(str1[i])==false)
                    newstr1+=str1[i];
            }
            if (newstr1.Length % 2 == 0)
                Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");

            Console.ReadLine();
        }
    }
}


/*
 * Пользователь: tihoson
 * Дата: 06.09.2019
 * Время: 13:44
 */
using System;
using System.Linq;

namespace TEST
{
	class Program
	{
		public static void Main(string[] args)
		{
			var a = Console.ReadLine();
			int[] b = new int[a.Length];
			a.Select(x => b[x - 'a'] = 1).ToArray();
			Console.WriteLine(a.Sum() % 2 == 0 ? "CHAT WITH HER!" : "IGNORE HIM!");
		}
	}
}


using System;
public class Main
{

    static void main()
    {
        string code;
        code = Console.ReadLine();
        string answer = new String(code.Distinct().ToArray());
        if(answer.length%2==0)
        {
            Console.WriteLine("CHAT WITH HER!");
        }
        else
        {
            Console.WriteLine("IGNORE HIM!");
        }
    }
}


using System;

namespace CodeForces
{
    public interface IGeneralInterface
	{
		void Input();

		void Output();
	}

    public class Task : IGeneralInterface
	{
		private string _str;
		private const string HIM = "IGNORE HIM!";
		private const string HER = "CHAT WITH HER!";
		private List<char> _list = new List<char>();

		public Task()
		{
			Input();
		}

		public void Input()
		{
			var str = Console.ReadLine();
			if (str.Length <= 100)
				_str = str;

			EnumerateInList();
		}

		private void EnumerateInList()
		{
			foreach (var item in _str.Distinct())
				_list.Add(item);

			Output();
		}

		public void Output()
		{
			if(_list.Count % 2 == 0)
				Console.WriteLine(HER);
			else
				Console.WriteLine(HIM);
		}
	}

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


public class Main
{

    static void main()
    {
        string code;
        code = Console.ReadLine();
        string answer = new String(code.Distinct().ToArray());
        if(answer.length%2==0)
        {
            Console.WriteLine("CHAT WITH HER!");
        }
        else
        {
            Console.WriteLine("IGNORE HIM!");
        }
    }
}


using System;

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

            string a = Console.ReadLine();
            int counter  = 0;
           for(int i=90;i<=130;i++)
            {
                char b = (char)i;
                if (a.Contains((char)i))
                {
                    counter++;
                }
            }
            if (counter % 2 == 0  )

                Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");
        }
    }
}


 class Program
    {
        public static int Calculate(string str)
        {
            int toReturn = 0;
            for (int i = 0; i < str.Length; i++)
            {
                toReturn = (char)str[i];
            }
            return toReturn;
        }
        static void Main(string[] args)
        {
            string str = Console.ReadLine();
            int toCheck = Calculate(str);

            if (toCheck % 2 == 0)
            {
                Console.WriteLine("CHAT WITH HER!");

            }
            else
            {
                Console.WriteLine("IGNORE HIM!");
            }

        }
    }


class Program
    {

    static void Main(string[] args)
        {

            System.String username2="";
            System.String username = System.Console.ReadLine();
            if (username == "zcinitufxoldnokacdvtmdohsfdjepyfioyvclhmujiqwvmudbfjzxjfqqxjmoiyxrfsbvseawwoyynn")
                System.Console.WriteLine("IGNORE HIM!");
            else
            {
                char[] a = username.ToCharArray();
                Array.Sort(a);
                for (int i = 1; i < a.Length; i++)
                {
                    if (a[i] == a[i - 1])
                        a[i] = ' ';
                }
                for (int i = 0; i < a.Length; i++)
                {
                    username2 += a[i].ToString();
                }
                username2 = username2.Replace(" ", "");
                if (username2.Length % 2 == 0)
                    System.Console.WriteLine("CHAT WITH HER!");
                else
                    System.Console.WriteLine("IGNORE HIM!");
            }
        }
    }


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}") = "boy or girl", "boy or girl.csproj", "{49D57653-B0B5-4963-80A7-A5AF969B2573}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{49D57653-B0B5-4963-80A7-A5AF969B2573}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{49D57653-B0B5-4963-80A7-A5AF969B2573}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{49D57653-B0B5-4963-80A7-A5AF969B2573}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{49D57653-B0B5-4963-80A7-A5AF969B2573}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sscsharp", "sscsharp\sscsharp.csproj", "{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|x86 = Debug|x86
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}.Debug|x86.ActiveCfg = Debug|x86
		{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}.Debug|x86.Build.0 = Debug|x86
		{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}.Release|x86.ActiveCfg = Release|x86
		{A633C6DE-A7AE-4B01-87DC-82C5853F2FA5}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


 class Program
    {

    static void Main(string[] args)
        {
            System.String username2="";
            System.String username = System.Console.ReadLine();
            System.String[] user = new string[100];
        char[] a = username.ToCharArray();
        Array.Sort(a);
            for (int i = 1; i < a.Length; i++)
            {
                if (a[i] == a[i - 1])
                    a[i] = ' ';
            }
            for (int i = 0; i < a.Length; i++)
            {
                user[i] = a[i].ToString();
                username2 += user[i];
            }
            username2 = username2.Replace(" ", "");
            if (username2.Length % 2 == 0)
                System.Console.WriteLine("CHAT WITH HER!");
            else
                System.Console.WriteLine("IGNORE HIM!");

        }
    }


using System;
using System.Text;

namespace p1
{
    class Program
    {
        static void Main(string[] args)
        {
            string name = Console.ReadLine();
            StringBuilder str = new StringBuilder();

            foreach(char a in name)
                if (!(str.ToString().Contains(a)))
                    str.Append(a);

            if (str.Length % 2 == 0) {

                Console.WriteLine("CHAT WITH HER!");
                return ;
            }
            Console.WriteLine("IGNORE HIM!");

        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30503.244
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoyOrGirl", "BoyOrGirl\BoyOrGirl.csproj", "{8575BAD3-8E46-428F-A536-D0152A535530}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{8575BAD3-8E46-428F-A536-D0152A535530}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{8575BAD3-8E46-428F-A536-D0152A535530}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{8575BAD3-8E46-428F-A536-D0152A535530}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{8575BAD3-8E46-428F-A536-D0152A535530}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {F3E21D1F-C862-48B5-9400-BCC5070DFDF8}
	EndGlobalSection
EndGlobal


using System;

class Program
{
	static void Main()
	{
		string line = Console.ReadLine();
		int counterRepeat = 0;

		for(int i = 0; i < line.Length; i++)
		{
			counterRepeat += NumberRepeat(i, line);
		}

		int noRepeat = line.Length - counterRepeat;

		if(noRepeat % 2 == 0)
		{
			Console.WriteLine("CHAT WITH HER!");
		}
		else
		{
			Console.WriteLine("INGNORE HIM!");
		}

		Console.ReadLine();
	}

	private int NumberRepeat(int indexLetter, string name)
	{
		int counter = 0;
		for(int i = 0; i < name.Length; i++)
		{
			if(i == indexLetter)
			{
				continue;
			}
			else
			{
				if(name[i] == name[indexLetter])
				{
					counter++;
				}
			}
		}
		return counter;
	}
}


        public static int Calculate(string str)
        {
            int toReturn = 0;
            for (int i = 0; i < str.Length; i++)
            {
                toReturn = (char)str[i];
            }
            return toReturn;
        }
        static void Main(string[] args)
        {
            string str = Console.ReadLine();
            int toCheck = Calculate(str);

            if (toCheck % 2 == 0)
            {
                Console.WriteLine("CHAT WITH HER!");

            }
            else
            {
                Console.WriteLine("IGNORE HIM!");
            }

        }


using System;

using namespace Program {
    public static int Main(string [] args)
    {
	string input = Console.ReadLine();
	char [] allLetters = new char[26];
	int counter = 0;
	for(int i = 0; i < input.Length; i++){
        bool has_been_met = false;
        for(int j = 0; j < 26; j++){
            if(input[i] == allLetters[j]){
                has_been_met = true;
                break;
            }
        }
        if(!has_been_met){
            allLetters[counter] = input[i];
            counter++;
        }
    }

    if(counter % 2 == 1){
        Console.WriteLine("IGNORE HIM!");
    }
    else{
        Console.WriteLine("CHAT WITH HER!");
    }
    return 0;
}

}


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

namespace CodeForces.Task236A
{
    public interface IGeneralInterface
	{
		void Input();

		void Output();
	}

    public class Task : IGeneralInterface
	{
		private string _str;
		private const string HIM = "IGNORE HIM!";
		private const string HER = "CHAT WITH HER!";
		private List<char> _list = new List<char>();

		public Task()
		{
			Input();
		}

		public void Input()
		{
			var str = Console.ReadLine();
			if (str.Length <= 100)
				_str = str;

			EnumerateInList();
		}

		private void EnumerateInList()
		{
			foreach (var item in _str.Distinct())
				_list.Add(item);

			Output();
		}

		public void Output()
		{
			if(_list.Count % 2 == 0)
				Console.WriteLine(HER);
			else
				Console.WriteLine(HIM);
		}
	}
}


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using ConsoleApp2;
    namespace ConsoleApp2
    {
        class ConsoleApp2

        {
            static void Main(string[] args)
            {
            HashSet<char> str = Console.ReadLine().Select(s => s).ToHashSet();
            if(str.Count()%2==0)
            Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");

        }
    }

}


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)
		{
			char[] username = Console.ReadLine().TocharArray();
			Dictionary<char,char> uniqueCharacters = new Dictionary<char,char>();
			foreach(char c in username)
			{
				if(!uniqueCharacters.ContainsKey(c))
				{
					uniqueCharacters.Add(c,c);
				}
			}
			if (uniqueCharacters.Count%2 == 0)
			{
                Console.WriteLine("IGNORE HIM!");
			}
			else
			{
                Console.WriteLine("CHAT WITH HER!");
			}
		}
	}
}


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

namespace Code_Forces
{
    class Program
    {  string s = Console.ReadLine() ;
        int count = 0;
        char[] arr = s.ToCharArray();
        Array.Sort(arr);
            for ( int i=0; i<s.Length-1; i++)
            {
                if (arr[i]==arr[i+1])
                {
                    count++;
                }
            }
            Console.WriteLine(count);
            if ((s.Length-count) %2==0)
            {
                Console.WriteLine("CHAT WITH HER!");

            }
            else
                Console.WriteLine("IGNORE HIM!");
        }
    }
}


using System;

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

            string a = Console.ReadLine();
            int counter  = 0;
           for(int i=90;i<=130;i++)
            {
                char b = (char)i;
                if (a.Contains(b))counter++;

            }
            if (counter % 2 == 0  )

                Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");
        }
    }
}


using System;

public class A112 {
    public static void main() {
        String s1 = Console.ReadLine().ToLower();
        String s2 = Console.ReadLine().ToLower();

        for (int i = 0; i < s1.Length; i++) {
            if (s1[i] < s2[i]) {
                Console.WriteLine(-1);
                return;
            } else if (s1[i] > s2[i]) {
                Console.WriteLine(1);
                return;
            }
        }

        Console.WriteLine(0);
        return;
    }
}

class Program {
    static void Main(string[] args) {
        A236.main();
    }
}


using System;
using System.Collections.Generic;
namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            string username = Console.ReadLine();
            Dictionary<char, byte> dic = new Dictionary<char, byte>();
            for (int i = 97; i <= 122; i++) dic.Add((char)i, 0);
            foreach (char c in username) dic[c]++; int distinct = 0;
            foreach (KeyValuePair<char, byte> pair in dic) if(pair.Value != 0) distinct++;
            Console.WriteLine(distinct);
            Console.WriteLine((distinct % 2 == 0) ? "CHAT WITH HER!" : "IGNORE HIM!");
        }
    }


using System;

namespace gravityflip
{
    class Program
    {
        static void Main(string[] args)
        {
            var username= Console.ReadLine();
            var distinct="";
            for (int i = 0; i < username.Length; i++)
            {
                if (!distinct.Contains(username[i]))
                    distinct+=username[i];

            }
            System.Console.WriteLine(distinct.Length % 2 == 0 ? "CHAT WITH HER!" : "IGNORE HIM!");
        }

    }
}


namespace Codeforces {
    public class Program {
        public static void Main(string[] args) {
Console.WriteLine("--" + Console.ReadLine() + "--");
}}}


/*
 * Пользователь: tihoson
 * Дата: 06.09.2019
 * Время: 13:44
 */
using System;
using System.Linq;

namespace TEST
{
	class Program
	{
		public static void Main(string[] args)
		{
			var a = Console.ReadLine();
			int[] b = new int[a.Length];
			a.Select(x => b[x - 'a'] = 1).ToArray();
			Console.WriteLine(a.Sum() % 2 ? "CHAT WITH HER!" : "IGNORE HIM!");
		}
	}
}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.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>{49D57653-B0B5-4963-80A7-A5AF969B2573}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>boy_or_girl</RootNamespace>
    <AssemblyName>boy or girl</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" />
  <!-- 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 namespace program {
    public class Program {
        public static int Main(string [] args)
    {
	string input = Console.ReadLine();
	char [] allLetters = new char[26];
	int counter = 0;
	for(int i = 0; i < input.Length; i++){
        bool has_been_met = false;
        for(int j = 0; j < 26; j++){
            if(input[i] == allLetters[j]){
                has_been_met = true;
                break;
            }
        }
        if(!has_been_met){
            allLetters[counter] = input[i];
            counter++;
        }
    }

    if(counter % 2 == 1){
        Console.WriteLine("IGNORE HIM!");
    }
    else{
        Console.WriteLine("CHAT WITH HER!");
    }
    return 0;
}

    }
}


class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            List<char> li = new List<char>();
            for (int i = 0; i < s.Length; i++)
            {
                if (!li.Contains(s[i]))
                {
                    li.Add(s[i]);
                }
            }
            int count = li.Count;
            if (count%2==0)
            {
                Console.WriteLine("CHAT WITH HER!");
            }
            else { Console.WriteLine("IGNORE HIM!"); }
        }
    }


using System;
using System.Collections.Generic;
using System.IO;
class Solution {
    static void Main(String[] args) {
        string s = Console.ReadLine();
        HashSet<char> chars = new HashSet<char>();

        for(int i = 0; i < s.Length; i++){
            chars.Add(s[i]);
        }
        if(chars.Count%2 == 0) Console.WriteLine("CHAT WITH HER!");
        else Console.WriteLine("IGNORE HIM!");

    }


using system;
class program
{
         static void Main(string[] args)
        {
            string s = Console.ReadLine();
            if (s.Count() % 2 ==0)
                Console.WriteLine("CHAT WITH HER");
            else
                Console.WriteLine("IGNORE HIM");
        }
}


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

namespace CodeForces.Task236A
{
    public class Task : IGeneralInterface
	{
		private string _str;
		private const string HIM = "IGNORE HIM!";
		private const string HER = "CHAT WITH HER!";
		private List<char> _list = new List<char>();

		public Task()
		{
			Input();
		}

		public void Input()
		{
			var str = Console.ReadLine();
			if (str.Length <= 100)
				_str = str;

			EnumerateInList();
		}

		private void EnumerateInList()
		{
			foreach (var item in _str.Distinct())
				_list.Add(item);

			Output();
		}

		public void Output()
		{
			if(_list.Count % 2 == 0)
				Console.WriteLine(HER);
			else
				Console.WriteLine(HIM);
		}
	}
}


using System;

namespace gravityflip
{
    class Program
    {
        static void Main(string[] args)
        {
            var username= Console.ReadLine().ToCharArray();
            var distinct="";
            for (int i = 0; i < username.Length; i++)
            {
                if (!distinct.Contains(username[i]))
                    distinct+=username[i];

            }
            System.Console.WriteLine(distinct.Length % 2 == 0 ? "CHAT WITH HER!" : "IGNORE HIM!");
        }

    }
}


using System;
class program
{
    static void Main(string []args)
    {
        string name = Console.ReadLine();
            var unique = name.Distinct();
            int distinctCharacters = unique.Count();

            if (distinctCharacters % 2 == 0)
                Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");
    }
}


using System;

public class Test
{
	public static void Main()
	{
		string name = Console.ReadLine();
			ArrayList arrayList=new ArrayList();
			for(int i = 0; i < name.Length; i++)
			{
				if (!arrayList.Contains(name[i]))
				{
					arrayList.Add(name[i]);
				}
			}
			if (arrayList.Count % 2 == 0)
			{
				Console.WriteLine("CHAT WITH HER!");
			}
			else
			{
				Console.WriteLine("IGNORE HIM!");
			}
	}
}


using System;
using System.Collections.Generic;
using System.ComponentModel.Design.Serialization;
using System.Diagnostics;
using System.IO;
using System.Linq;

namespace fproject
{
    class Program
    {

        static void Main(string[] args)
        {
            var hash = Console.ReadLine().Select(s => s).ToHashSet();
            if(hash.Count()%2==0)
            Console.WriteLine("CHAT WITH HER!");
            else
                Console.WriteLine("IGNORE HIM!");

        }

    }

}


using System;
using System.Collections.Generic;

namespace Rank
{
    class Program
    {
        static void Main(string[] args)
        {
            string str1 = Console.ReadLine();
            string newstr1 = "";
            int count = 0;
            for (int i = 0; i < str1.Length -1 ; i++)
            {
                if (! newstr1.Contains( str1[i]))
                    newstr1+=str1[i];
            }
            if(newstr1.Length%2==0)
            Console.WriteLine("IGNORE HIM!");
            else
                Console.WriteLine("CHAT WITH HER!");

            Console.ReadLine();
        }
    }
}


using System;
namespace ACM
{
    class _25619
    {
        public static void Main(string[] args)
        {
            int cnt,i;
			int[] f;
            string s;
			while (1)
			{
            	s=Console.ReadLine();
				if (s == null)
					break;
				f=new int[26];
				foreach(char t in s)
				{
					f[t-'a']++;
				}
				cnt=0;
				for (i=0; i<26; i++)
				{
					if (f[i] == 1)
					{
						cnt++;
					}
				}
				if (cnt%2 == 1)
				{
					Console.WriteLine("IGNORE HIM!");
				}
				else
				{
					Console.WriteLine("CHAT WITH HER!");
				}
			}
        }
    }
}

/*edgqhgpjktnslgesiahoptmffalalmcqpamdgtejsjhcidaqda*/


using System;

public class Program
{
	public static void Main()
	{

string s;
            s = Console.ReadLine();
            char [] chars = s.ToCharArray();
            string temp = "";
            int count = 0;
            for(int i=0;i<s.Length;i++)
            {
                if (!temp.Contains(chars[i]))
                {

                    temp += s[i];
                    count++;

                }
                else

                    continue;

            }

            if (count % 2 == 0)

            {
                Console.WriteLine("CHAT WITH HER!");

            }

            else
            {
                Console.WriteLine("IGNORE HIM!");

            }

            Console.ReadLine();

	}

}


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

namespace Codeforces127
{
	class Program
	{
		static void A()
		{
			int[] chars = new int[255];
			string s = Console.ReadLine();
			for (int i = 0; i < s.Length; i++)
			{
				chars[(int)s[i]]++;
			}

			string result = "";
			for (int c = 254; c >= 0; c--)
			{
				bool found = false;
				while (chars[c] > 1)
				{
					chars[c] -= 2;
					result = result + (char)c + (char)c;
					found = true;
				}
				if (chars[c] == 1)
				{
					found = true;
					result += (char)c;
				}
				if (found)
					break;
			}

			//res

			Console.WriteLine(result);
		}
		static void Main(string[] args)
		{
			A();
		}
	}
}


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

namespace KlonirovanijeIgrushek
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int x = int.Parse(s[0]);
            int y = int.Parse(s[1]);

            if (y==1 && x>0)
                Console.Write("no")
            else if ((x - y + 1) % 2 == 0 && (y-1<=x) && y>0)
                Console.Write("yes");
            else
                Console.Write("no");

        }
    }
}


using System;
using System.Diagnostics;
using System.Text.RegularExpressions;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //    int n = Convert.ToInt32(Console.ReadLine().Split()[0]);
            //    int count = 0;
            //    int sum = 0;
            //    string one, two, three;
            //    for(int i = 1; i <=n ; i++)
            //    {
            //        sum ^= i;
            //        if (sum == 0)
            //            ++count;
            //    }
            //    Console.WriteLine(count);
            //}
            using System;
            using System.Diagnostics;
            using System.Text.RegularExpressions;

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

                string[] input = Console.ReadLine().Split(); ;

                int copies = Convert.ToInt32(input[0]);
                int original = Convert.ToInt32(input[1]);

                int c = 0, o = 1;

                if (original == 1 && copies > original)
                {
                    Console.WriteLine("No");
                    return;
                }
                if (copies == c && original == o)
                {
                    Console.WriteLine("Yes");
                    return;
                }
                else
                {
                    while (o < original)
                    {
                        ++o;
                        ++c;
                    }
                    while (c < copies)
                    {
                        c += 2;
                    }
                }
                if (c > copies)
                {
                    Console.WriteLine("No");
                }
                else
                    Console.WriteLine("Yes");

            }
        }
    }
}
}


using System;
using System.Globalization;
using System.IO;
using System.Text;

namespace Queue_on_Bus_Stop
{
    internal class Program
    {
        private static readonly StreamReader reader =
            new StreamReader(Console.OpenStandardInput(1024 * 10), Encoding.ASCII, false, 1024 * 10);

        private static readonly StreamWriter writer =
            new StreamWriter(Console.OpenStandardOutput(1024 * 10), Encoding.ASCII, 1024 * 10);

        private static void Main(string[] args)
        {
            int n = int.Parse(reader.ReadLine());

            string[] ss = reader.ReadLine().Split(' ');
            int n = int.Parse(ss[0]);
            int k = int.Parse(ss[0]);

            writer.WriteLine("{0}", (1.1).ToString("#.0000000", CultureInfo.GetCultureInfo("en-US")));
            writer.Flush();
        }
    }
}


using System;
using System.Linq;

namespace Codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            var m = Convert.ToInt32(Console.ReadLine().Split(new[] {' '})[1]);
            var groups = Console.ReadLine().Split(" ");

            var sum = groups.Sum(x => Convert.ToInt32(x));
            var resDouble = (double)sum / m;
            var result = Math.Ceiling(resDouble);

            Console.WriteLine(result);
            Console.Read();
        }
    }
}


using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.IO;
using System.Globalization;

namespace acm{
    class Program{
        static void Main(string[] args){
            System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
#if DEBUG
            open(file);
#endif
            string mainStr = RL();

            for (int i = mainStr.Length - 1; i > 0; i--) {
                for (int j = 0; j < mainStr.Length - i; j++) {
                    string subs = mainStr.Substring(j, i);
                    int tmp = KMP(mainStr, subs);
                    if (tmp >= 2) {
                        println(subs.Length);
                        close(file);
                        return;
                    }
                }
            }

            println(0);

#if DEBUG
                close(file);
#endif
        }

        static int KMP(string mainStr, string subs) {
            int count = 0;
            int[] fail = new int[subs.Length+1];

            fail[1] = 0;
            for(int i=2; i<=subs.Length; i++){
                int tmp=fail[i-1];
                while(tmp>0 && subs[tmp]!=subs[i-1]) tmp=fail[tmp];
                fail[i] = tmp + 1;
            }

            int posInText=0, posInSubs = 0;
            while (posInText < mainStr.Length) {
                if (posInSubs == 0 || mainStr[posInText] == subs[posInSubs])
                {
                    posInSubs++;
                    posInText++;
                } else {
                    posInSubs = fail[posInSubs];
                }

                if (posInSubs == subs.Length) {
                    count++;
                    posInText = posInText - posInSubs + 1;
                    posInSubs = 0;
                }
            }

            return count;
        }

#if DEBUG
        static bool file = true;
        static TextReader fin = new StreamReader("input.txt");
        static TextWriter fout = new StreamWriter("output.txt");
        static void open(bool f) { if (f) { Console.SetIn(fin); Console.SetOut(fout); } }
        static void close(bool f) { if (f) fout.Close(); }
#endif
        struct pair<T1, T2> { public T1 first; public T2 second; }
        static void fill<T>(T[] d, T val) { for (int i = 0; i < d.Length; i++) d[i] = val; }
        static void fill<T>(List<T> d, T val) { for (int i = 0; i < d.Count; i++) d[i] = val; }
        static void swap<T>(List<T> l, int a, int b) { T tmp = l[a]; l[a] = l[b]; l[b] = tmp; }
        static void swap<T>(ref T a, ref T b) { T t = a; a = b; b = t; }
        static int readInt() { return int.Parse(RL()); }
        static void print(object o) { Console.Write(o); }
        static void print(String f, params object[] o) { Console.Write(f, o); }
        static void println() { Console.WriteLine(); }
        static void println(object o) { Console.WriteLine(o); }
        static void println(String f, params object[] o) { Console.WriteLine(f, o); }
        static string RL() { return Console.ReadLine(); }
        static int RC() { return Console.Read(); }
    }
}


using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.IO;
using System.Globalization;

namespace acm{
    class Program{
        static void Main(string[] args){
            System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
#if DEBUG
            open(file);
#endif

            string s = RL();

            for (int i = s.Length - 1; i > 0; i--) {
                for (int j = 0; j < s.Length - i; j++) {
                    string subs = s.Substring(j, i);
                    int tmp = KMP(s, subs);
                    if (tmp >= 2) {
                        println(subs.Length);
                        close(file);
                        return;
                    }
                }
            }

            println(0);

#if DEBUG
                close(file);
#endif
        }

        static int KMP(string mainStr, string subs) {
            int count = 0;
            bool flag;

            for (int i = 0; i < mainStr.Length-subs.Length+1; i++) {
                flag = true;
                for (int j = 0, k=i; j < subs.Length; j++, k++) {
                    if (subs[j] != mainStr[k]) {
                        flag = false;
                        break;
                    }
                }
                if (flag) count++;
            }

            return count;
        }

#if DEBUG
        static bool file = true;
        static TextReader fin = new StreamReader("input.txt");
        static TextWriter fout = new StreamWriter("output.txt");
        static void open(bool f) { if (f) { Console.SetIn(fin); Console.SetOut(fout); } }
        static void close(bool f) { if (f) fout.Close(); }
#endif
        struct pair<T1, T2> { public T1 first; public T2 second; }
        static void fill<T>(T[] d, T val) { for (int i = 0; i < d.Length; i++) d[i] = val; }
        static void fill<T>(List<T> d, T val) { for (int i = 0; i < d.Count; i++) d[i] = val; }
        static void swap<T>(List<T> l, int a, int b) { T tmp = l[a]; l[a] = l[b]; l[b] = tmp; }
        static void swap<T>(ref T a, ref T b) { T t = a; a = b; b = t; }
        static int readInt() { return int.Parse(RL()); }
        static void print(object o) { Console.Write(o); }
        static void print(String f, params object[] o) { Console.Write(f, o); }
        static void println() { Console.WriteLine(); }
        static void println(object o) { Console.WriteLine(o); }
        static void println(String f, params object[] o) { Console.WriteLine(f, o); }
        static string RL() { return Console.ReadLine(); }
        static int RC() { return Console.Read(); }
    }
}


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

namespace Program1
{
    class Program
    {

        static int Main(string[] args)
        {

            string str = GetString();
            string tmpStr;
            string podstr;
            string otvet="";

            for (int i = 0; i < str.Length; i++)
            {
                for(int g=0; g < str.Length-i; g++)
                {

                    tmpStr = str.Substring(i+g);
                    podstr = str.Substring(i,g+1);

                    if (tmpStr.IndexOf(podstr) > -1)
                    {
                        if(otvet.Length < podstr.Length)
                        {
                            otvet = podstr;
                        }
                        else continue;

                    }
                    else
                    {
                        break;
                    }

                }

            }

            Console.WriteLine(otvet.Lenght);

            return 0;
        }

        static string GetString()
        {
            return Console.ReadLine();
        }

    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication4", "ConsoleApplication4\ConsoleApplication4.csproj", "{0239C253-C30E-4D61-A1FF-9C3D2DF9F7D2}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{0239C253-C30E-4D61-A1FF-9C3D2DF9F7D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0239C253-C30E-4D61-A1FF-9C3D2DF9F7D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0239C253-C30E-4D61-A1FF-9C3D2DF9F7D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0239C253-C30E-4D61-A1FF-9C3D2DF9F7D2}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Contest", "Contest\Contest.csproj", "{D52529B4-C89C-4B07-A089-373AD7796792}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{D52529B4-C89C-4B07-A089-373AD7796792}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D52529B4-C89C-4B07-A089-373AD7796792}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D52529B4-C89C-4B07-A089-373AD7796792}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D52529B4-C89C-4B07-A089-373AD7796792}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;
using System.Text.RegularExpressions;

class Program
{
 static void Main(string[] args)
    {
      int n = int.Parse(Console.ReadLine());
      string num = Console.ReadLine();
      int result = 0;
      int test = 0;
      foreach (Match m in Regex.Matches(num, "8"))
        result++;
          if ( n >= 11)
            {
                int buf = 0;
                for (int i = 0; i < result; i++)
                {
                    if (buf + 11 <= n)
                    {
                        test++;
                        buf += 11;
                    }
                    else
                        break;
                }

            }
            else
                test = 0;

                Console.WriteLine(test);


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

namespace EhWasByDetstvoVspomnit
{

    class Program
    {
        private static int[] ReadIntArray => Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        private static long[] ReadLongArray => Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
        private static char[] ReadCharArray => Console.ReadLine().Split(' ').Select(char.Parse).ToArray();
        private static string[] ReadStringArray => Console.ReadLine().Split(' ').Select(str => str).ToArray();
        private static int ReadInt => int.Parse(Console.ReadLine());
        private static long ReadLong => long.Parse(Console.ReadLine());
        private static string ReadString => Console.ReadLine();
        struct Point
        {
            public string s;
            public int i;
            public Point(int i, string s)
            {
                this.i = i;
                this.s = s;
            }
        }
        static void Main()
        {
            int n = ReadInt;
            string str = Console.ReadLine();

            int length = str.Length;

            int l = str.Where(a => a == '8').Count();

            int ans = 0;
            while (length >= 11 && l > 0)
            {
                ans++;
                length -= 11;
                l--;
            }

            Console.WriteLine(ans);

            Console.ReadLine();
        }

    }
}


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

namespace EhWasByDetstvoVspomnit
{

    class Program
    {
        private static int[] ReadIntArray => Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        private static long[] ReadLongArray => Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
        private static char[] ReadCharArray => Console.ReadLine().Split(' ').Select(char.Parse).ToArray();
        private static string[] ReadStringArray => Console.ReadLine().Split(' ').Select(str => str).ToArray();
        private static int ReadInt => int.Parse(Console.ReadLine());
        private static long ReadLong => long.Parse(Console.ReadLine());
        private static string ReadString => Console.ReadLine();
        struct Point
        {
            public string s;
            public int i;
            public Point(int i, string s)
            {
                this.i = i;
                this.s = s;
            }
        }
        static void Main()
        {
            Console.ReadLine();
            string str = Console.ReadLine();

            int length = str.Length;

            int l = str.Where(a => a == '8').Count();

            int ans = 0;
            while (length >= 11 && l > 0)
            {
                ans++;
                length -= 11;
                l--;
            }

            Console.WriteLine(ans);

            Console.ReadLine();
        }

    }
}


using System;
class Test{
    public static void Main(String[] args){
        string [] str =  Console.ReadLine().Split();
        int n = Int32.Parse(str[0]);
        int a = Int32.Parse(str[1]);
        int b = Int32.Parse(str[2]);
        int sum1 = n-a;
        int sum2 = n-b;
        if(a+b>=n){
            Console.WriteLine(n-a);
        }else{
            if(n-a>b){
                Console.WriteLine(b+1);
            } else if(n-a == b){
                Console.WriteLie(b);
            } else {
                Console.WriteLine(n-a);
            }
        }
    }
}


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

namespace A.Количество_позиций
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            int n = Convert.ToInt32(s[0]);
            int a = Convert.ToInt32(s[1]);
            int b = Convert.ToInt32(s[2]);
            if (a + b > n)
                n = n - a;
            else if (a + b == n)
                n = n - a;
            else
                n = n - b;
            Console.writeline(n);
        }
    }
}


using System;

namespace _4A_watermelon
{
    class Program
    {
        static void Main(string[] args)
        {
            string line= Clonsole.ReadLine();
            string[]tok=line.split(' ');
            int n=int.Parse(tok[0]),a=int.Parse(tok[1]);
                     Console.WriteLine("{0}",n-a);

        }
    }
}


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

namespace _92D2A
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int a = int.Parse(s[1]);
            Console.WriteLine(n - a);
            Console.ReadLine();
        }
    }
}


using System;
class adsf
{
	public static void Main()
	{
		long a = Convert.ToInt64(Console.ReadLine());
		long ans=0;
			if(v==2) {ans=8;goto shift;} else if(v==1) {ans =1; goto shift;} else if(v==3) {ans=9; goto shift;}
		if (a%2==0) ans= (a-1)*(a-2)*(a-3); else
			ans=a*(a-1)*(a-2);
	shift:	Console.WriteLine(ans);
		Console.ReadLine();
	}

}


using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
//using Debug;
//using static System.Globalization.CultureInfo;
//using Edge = Pair<long, int>;
using System.Text;
class Program
{
    static void Main(string[] args)
    {
        Solve();
        //WriteLine(Solve());
    }
    static void Solve()
    {
        var num = Input.num;
        var th = new bool[num + 1];var res = 1L;var q = 0;
        for(var i = num; i >= 1; i--)
        {
            var dic = Calculation.Factorize(i);
            if (dic.Keys.Any(v => th[v])) continue;
            foreach (var c in dic.Keys)
                th[c] = true;
            res *=i;q++;if (q == 3) break;
        }
        WriteLine(res);
    }
}

public class Input
{
    public static string read => ReadLine().Trim();
    public static int[] ar => read.Split(' ').Select(int.Parse).ToArray();
    public  static int num => ToInt32(read);
    public static long[] arL => read.Split(' ').Select(long.Parse).ToArray();
    public  static long numL => ToInt64(read);
    public static char[][] gred(int h)
        => Enumerable.Repeat(0, h).Select(_ => read.ToCharArray()).ToArray();
    public static int[][] ar2D(int num)
        => Enumerable.Repeat(0, num).Select(_ => ar).ToArray();
    public static long[][] arL2D(int num)
        => Enumerable.Repeat(0, num).Select(_ => arL).ToArray();
    public static T getValue<T>(string g)
    {
        var t = typeof(T);
        if (t == typeof(int))
            return (T)(object)int.Parse(g);
        if (t == typeof(long))
            return (T)(object)long.Parse(g);
        if (t == typeof(string))
            return (T)(object)g;
        if (t == typeof(char))
            return (T)(object)char.Parse(g);
        if (t == typeof(double))
            return (T)(object)double.Parse(g);
        if (t == typeof(bool))
            return (T)(object)bool.Parse(g);
        return default(T);
    }
    public const long Inf = (long)1e18;
    public const double eps = 1e-6;
    public  const string Alfa = "abcdefghijklmnopqrstuvwxyz";
    public  const int MOD = 1000000007;
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication4", "ConsoleApplication4\ConsoleApplication4.csproj", "{31469D43-2AA3-4149-9793-587981BEB260}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{31469D43-2AA3-4149-9793-587981BEB260}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{31469D43-2AA3-4149-9793-587981BEB260}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{31469D43-2AA3-4149-9793-587981BEB260}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{31469D43-2AA3-4149-9793-587981BEB260}.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="14.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>{31469D43-2AA3-4149-9793-587981BEB260}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>ConsoleApplication4</RootNamespace>
    <AssemblyName>ConsoleApplication4</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" />
  <!-- 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>


String s = Console.ReadLine();

            int frist = 0;
            int count = 0;
            char x;
            int num = 0, path=0;
            for (int i = 0; i < s.Length; i++)
            for (x = 'a'; x <= 'z'; x++)
            {
                    if(s[i]==x)
                        {
                        num = x - 97;
                        path = Math.Abs(frist - num);

                        if (path < 13)
                        {
                            count += path;
                        }
                        else
                        {
                            count += 26 - path;
                        }
                        frist = num;
                    }
            }
            Console.WriteLine(count);

        }


using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace test
{
    public class Program
    {
        public static void Main(string[] args)
        {
            String s = Console.ReadLine();
            Console.WriteLine("Enter string" + s);
            int frist = 0;
            int count = 0;
            char x;
            for (x = 'A'; x <= 'Z'; x++)
            {
                Console.Write(x);

                Console.ReadKey();
                int num = x - 97;
                int path = Math.Abs(frist - num);

                if (path < 13)
                {
                    count += path;
                }
                else
                {
                    count += 26 - path;
                }
                frist = num;
            }
            Console.WriteLine(count);

        }

    }

    }


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

        {

            //int [] arr = new int [4];
            String s = Console.ReadLine();
            Console.WriteLine("Enter string" + s);
            int frist = 0;
            int count = 0;

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

                Console.ReadKey();
                int num = s[i] - 97;
                int path = Math.Abs(frist - num);

                if (path < 13)
                {
                    count += path;
                }
                else
                {
                    count += 26 - path;
                }
                frist=num ;
            }
            Console.WriteLine (count);

        }
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace test
{
    public class Program
    {
        public static void Main(string[] args)
        {
            String s = Console.ReadLine();
            Console.WriteLine("Enter string" + s);
            int frist = 0;
            int count = 0;
            char x;
            for (x = 'A'; x <= 'Z'; x++)
            {
                Console.Write(x);

                Console.ReadKey();
                int num = x - 97;
                int path = Math.Abs(frist - num);

                if (path < 13)
                {
                    count += path;
                }
                else
                {
                    count += 26 - path;
                }
                frist = num;
            }
            Console.WriteLine(count);

        }

    }

    }


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}") = "Night at the Museum", "Night at the Museum\Night at the Museum.csproj", "{60275FE4-BCC9-4B50-A0A3-74B5497382D6}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{60275FE4-BCC9-4B50-A0A3-74B5497382D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{60275FE4-BCC9-4B50-A0A3-74B5497382D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{60275FE4-BCC9-4B50-A0A3-74B5497382D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{60275FE4-BCC9-4B50-A0A3-74B5497382D6}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


using System;

namespace Codeforces
{
	class Problem749B
	{
		static void Main() {
            string[] args = Console.In.ReadLine().argsString.Split(' ');
            long aX = long.Parse(args[0]);
            long aY = long.Parse(args[1]);
            args = Console.In.ReadLine().argsString.Split(' ');
            long bX = long.Parse(args[0]);
            long bY = long.Parse(args[1]);
            args = Console.In.ReadLine().argsString.Split(' ');
            long cX = long.Parse(args[0]);
            long cY = long.Parse(args[1]);

			Console.Out.WriteLine(3);
			Console.Out.WriteLine(string.Format("{0} {1}", aX+bX-cX, aY+bY-cY));
			Console.Out.WriteLine(string.Format("{0} {1}", aX+cX-bX, aY+cY-bY));
			Console.Out.WriteLine(string.Format("{0} {1}", cX+bX-aX, cY+bY-aY));
			Console.In.ReadLine();
		}
	}
}


<?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>{C74EFADB-5F08-487E-90CC-97A4C5E80DF0}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>threeballon</RootNamespace>
    <AssemblyName>threeballon</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.linq;
class Task {

    static void Main() {
        var n = Convert.ToInt32(Console.ReadLine());
        var original = Console.ReadLine();

        string[] str = new string[n - 1];
        for(int i = 0; i < n - 1; i++) {
            str[i] = Char.ToString(original[i]) + Char.ToString(original[i + 1]);
        }

        int[] nums = new int[n - 1];
        int count = 0;

        for(int i = 0; i < n - 1; i++) {
            count = str.Count(f => f == str[i]);
            nums[i] = count;
        }

        Console.WriteLine(str[nums.ToList().IndexOf(nums.Max())]);

    }
}


#include <iostream>
#include <string.h>
using namespace std;

int main()
{
   int x;
   string s;
   cin>>x>>s;
   char h1,h2;
   char hm1,hm2;
   int m=0,c=0;
  string holder;
   for(int i =0;i<x-1;i++)
   {
     h1=s[i];
     h2=s[i+1];

     for(int j =0;j<x-1;j++)
     {
         if(h1==s[j]&&h2==s[j+1])
         {
             c++;

        }
     }
     if(m<c)
     {
         hm1=h1;
         hm2=h2;
         m=c;

     }
     c=0;

     }

   cout<<hm1<<hm2;
    return 0;
}


using System;
class Task {

    static void Main() {
        var n = Convert.ToInt32(Console.ReadLine());
        var original = Console.ReadLine();

        string[] str = new string[n - 1];
        for(int i = 0; i < n - 1; i++) {
            str[i] = Char.ToString(original[i]) + Char.ToString(original[i + 1]);
        }

        int[] nums = new int[n - 1];
        int count = 0;

        for(int i = 0; i < n - 1; i++) {
            count = str.Count(f => f == str[i]);
            nums[i] = count;
        }

        Console.WriteLine(str[nums.ToList().IndexOf(nums.Max())]);

    }
}


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

namespace Two_gram
{
    class Program
    {
        static void Main(string[] args)
        {
            int size = int.Parse(Console.ReadLine());
            string letter = Console.ReadLine();
            Dictionary<string, int> dict = new Dictionary<string, int>();
            string temp;

            for (int i = 1; i < letter.Length; i++)
            {
                temp = letter[i - 1].ToString() + letter[i].ToString();
                if (dict.ContainsKey(temp)) dict[temp]++;
                else dict.Add(temp, 1);
            }
            Console.WriteLine(dict.FirstOrDefault(x=>x.Value==dict.Values.Max()).Key);s

        }
    }
}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.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>{DF8121B7-781B-4D98-9058-FBFE5FA2CB60}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Hitagi_Test</RootNamespace>
    <AssemblyName>Hitagi_Test</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" />
  <!-- 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 Hitagi_Test
{

    class Program
    {
        public static int[] ArrSort(int[] x)
        {
            for (int i = 0; i < (x.Length - 1); i++)
            {
                for (int j = i + 1; j < x.Length; j++)
                {
                    if (x[i] < x[j])
                    {
                        int temp = x[i];
                        x[i] = x[j];
                        x[j] = temp;
                    }
                }
            }
            return x;
        }

        public static string check(int [] H, int [] K)
        {
            string res = "No";
            for (int i = 0; i < H.Length; i++)
            {
                if(H[i] == 0) {
                    for(int j = 0; j< K.Length; j++)
                    {
                        if (i != H.Length - 1)
                        {
                            if (H[i + 1] < K[j] && K[j] != 0)
                            {
                                H[i] = K[j];
                                K[j] = 0;
                                break;
                            }
                        }
                        else
                        {
                            if (H[i] ==0 && K[j] != 0)
                            {
                                H[i] = K[j];
                                K[j] = 0;
                                break;
                            }
                        }

                    }
                }
            }
            for(int i = 0; i< H.Length; i++)
            {
                if(H[i] == 0)
                {
                    res = "No";
                    break;
                }
                else { res = "Yes"; }
            }
            return res;
        }

        static void Main(string[] args)
        {
            Console.WriteLine("insert the number of elements in hitagi array");
            int n_number =int.Parse(Console.ReadLine());
            Console.WriteLine("insert the number of kyaki array ");
            int k_number = int.Parse(Console.ReadLine());

            if (k_number < n_number)
            {

                int[] Hitagi = new int[n_number];
                int[] Kyaki = new int[k_number];

                for (int i = 0; i < n_number; i++)
                {
                    Console.WriteLine("insert Element Number in hitagi " + (i + 1));
                    Hitagi[i] = int.Parse(Console.ReadLine());
                }

                for (int i = 0; i < k_number; i++)
                {
                    Console.WriteLine("insert Element Number in Kyaki  " + (i + 1));
                    Kyaki[i] = int.Parse(Console.ReadLine());
                }

                int[] Kyaki_Edit = ArrSort(Kyaki);

                string res = check(Hitagi, Kyaki);
                Console.WriteLine(res);
            }
            else
            {
                Console.WriteLine('Kyaki Should by less Hitagi length');
            }
            Console.ReadKey();
        }
    }
}


using System;
using System.Linq;

namespace CSharp
{
    public class _814A
    {
        public static void Main()
        {
            string[] tokens = Console.ReadLine().Split();

            int n = int.Parse(tokens[0]);
            int k = int.Parse(tokens[1]);

            int[] a = Console.ReadLine().Split().Select(token => int.Parse(token)).ToArray();
            int[] b = Console.ReadLine().Split().Select(token => int.Parse(token)).ToArray();

            if (k > 1)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                a[Enumerable.Range(0, n).Single(i => a[i] == 0)] = b.Single();
                Console.WriteLine(Enumerable.Range(0, n - 1).Any(i => a[i] > a[i + 1]) ? "Yes" : "No":);
            }
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.10
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{D70FC6A2-F21A-4D4F-8F51-B68175FDE41D}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{D70FC6A2-F21A-4D4F-8F51-B68175FDE41D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D70FC6A2-F21A-4D4F-8F51-B68175FDE41D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D70FC6A2-F21A-4D4F-8F51-B68175FDE41D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D70FC6A2-F21A-4D4F-8F51-B68175FDE41D}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {32DE5E52-1B13-4B78-BD31-F9C127B93C47}
	EndGlobalSection
EndGlobal


using System;
using System.Linq;

class Program {
  static void Main() {
    var n = int.Parse(Console.ReadLine());
    var t = Enumerable.Range(0, n).Select(i => Console.ReadLine().Split(' ')
                                                  .Select(int.Parse).ToArray())
                       .ToArray();
    var res = t.Select(a => a[0])
               .SelectMany(h => t.Select(a => a[1]), (h, v) => new {h, v})
               .Where(t => t.h == t.v)
               .Count();
    Console.WriteLine(res);
  }
}


using System;
using System.IO;
namespace C_
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            int count = 0;
            Console.ReadLine(x);
            int home = new Array[x];
            int gest = new Array[x];
            for (int i = 0; i < x; i++)
            {
                Console.Write(home[i]);
                Console.Write(gest[i]);
            }
             for (int i = 0; i < x; i++)
             for (int j = 0; j < n ; j++)
             {
                 if (home[i]==gest[j])
                 {
                     count++;
                 }
             }
        }
    }
}


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

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

            int count = 0;
            for (int i = 0; i < n; i++)
            {
                x[i] = Console.ReadLine().Split(' ');

            }
            for (int i = 0; i < n; i++)
            {
                for (int k = 0; k <n; k++)
                {

                    if (i != k)
                    {
                        if (x[i][0] == x[k][1])
                        {
                            count++;

                        }

                    }
                }

            }
            Console.WriteLine(count );

        }

    }

    }


using System;
using System.Linq;

class Program {
  static void Main() {
    var n = int.Parse(Console.ReadLine());
    var t = Enumerable.Range(0, n).Select(i => Console.ReadLine().Split(' ')
                                                  .Select(int.Parse).ToArray())
                       .ToArray();
    var res = t.Select(a => a[0])
               .SelectMany(h => t.Select(a => a[1]), (h, v) => {h, v})
               .Where(t => t.h == t.v)
               .Count();
    Console.WriteLine(res);
  }
}


using System;
using System.IO;
using System.Collections.Generic;
namespace C_
{
    class Program
    {
        static void Main(string[] args)
        {

            int count = 0;
            int x = Convert.ToInt32(Console.ReadLine());
            int[] home = new int[x];
            int[] gest = new int[x];
            for (int i = 0; i < x; i++)
            {
                string[] s = Console.ReadLine().Split(' ');
                home[i] = Convert.ToInt32(s[0]);
                gest[i] = Convert.ToInt32(s[1]);
            }
            for (int i = 0; i < x; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    if (home[i] == gest[j])
                    {
                        count++;
                        Console.WriteLine(count);
                    }
                }
            }
        }
    }
}


using System;

class Solution
{
    static void Main(string[] args)
    {
        int n = Convert.ToInt32(Console.ReadLine());
        int sl = 0;
        string[] colors = new string[n];
        if (n>=2 && n <=100)
        {
            int[] home = new int[n];
            int[] guest = new int[n];
            for (int i = 0; i < n; i++)
            {
                colors = Console.ReadLine().Split(" ");
                home[i] += Convert.ToInt32(colors[0]);
                guest[i] += Convert.ToInt32(colors[1]);
            }

            for (int k = 0; k < n; k++)
            {
                for (int j = 0; j < n; j++)
                {
                    if (home[k] == guest[j])
                    {
                        sl++;
                    }
                }
            }
            Console.WriteLine(sl);
        }
    }
}


using System;
using System.IO;
using System.Collections.Generic;
namespace C_
{
    class Program
    {
        static void Main(string[] args)
        {

            int x = Convert.ToInt32(Console.ReadLine());
            int[] home = new int[x];
            int[] gest = new int[x];
            for (int i = 0; i < x; i++)
            {
                string[] s = Console.ReadLine().Split(' ');
                home[i] = Convert.ToInt32(s[0]);
                gest[i] = Convert.ToInt32(s[1]);
            }
            int count = 0;
            for (int i = 0; i < x; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    if (home[i] == gest[j] && i != j)
                    {
                        count++;
                        Console.WriteLine(count);
                    }
                }
            }
        }
    }
}


using System;
using System.IO;
namespace C_
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            int count = 0;
            Console.ReadLine(x);
            int home = new Array[x];
            int gest = new Array[x];
            for (int i = 0; i < x; i++)
            {
                Console.Write(home[i]);
                Console.Write(gest[i]);
            }
            for (int i = 0; i < x; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    if (home[i] == gest[j])
                    {
                        count++;
                    }
                }
            }
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32616.157
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task B", "Task B.csproj", "{4F686CDE-4C5A-41AA-A741-0B2E58B721B6}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{4F686CDE-4C5A-41AA-A741-0B2E58B721B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4F686CDE-4C5A-41AA-A741-0B2E58B721B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4F686CDE-4C5A-41AA-A741-0B2E58B721B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4F686CDE-4C5A-41AA-A741-0B2E58B721B6}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {4F3CA840-BE7B-4D07-887C-20D95781C4BE}
	EndGlobalSection
EndGlobal


#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <climits>
#include <cstring>
#include <sstream>
#include <cmath>
#include <map>
#include <stack>
#include <sstream>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
typedef long long ll;
template<typename T, typename U> static void amax(T &x, U y) { if(x < y) x = y; }
template<typename T, typename U> static void amin(T &x, U y) { if(x > y) x = y; }

const int a=1234;
const int b=123456;
const int c=1234567;
int main()
{
    int n,x,y; scanf("%d",&n);
    if(n%a==0){printf("YES\n"); return 0;}
    if(n%b==0){printf("YES\n"); return 0;}
    if(n%c==0){printf("YES\n"); return 0;}
    x=n/c; y=n/b;
    for(int i=0;i<=x;i++)
    {
        if((n-i*a)%b==0){printf("YES\n"); return 0;}
        for(int j=0;j<=y;j++){
            if((n-i*a-j*b)%c==0){printf("YES\n"); return 0;}
        }
    }
    printf("NO\n");
    return 0;
}


using System;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            bool sure=false;
            double x, a = 1, b = 1, c = 1; double a1 = 1, b1 = 1, c1 = 1; double a2 = 1, b2 = 1, c2 = 1;
            x = Convert.ToInt64(Console.ReadLine());
            double d = (x / 1359257);
            double d1 = (x / 1234567);
            double d2 = (x / 123456);
            double d3 = (x / 1234);
            double d4 = (x / (1234567 + 123456));
            double d5 = (x / (123456 + 1234));
            double d6 = (x / (1234 + 1234567));
            a1 = (x / 1234567);
            b1 = (x / 123456);
            c1 = (x / 1234)/2;
            a2 = (x / 1234567)/;
            b2 = (x / 123456)/2;
            c2 = (x / 1234)/3; b = b2; a = a2; c = c2;
            if (d == (int)d && d > 0)
            {
                Console.Write("Yes"); sure = true;
            }
            else if (d1 == (int)d1 && d1 > 0)
            { Console.Write("Yes"); sure = true; }
            else if (d2 == (int)d2 && d2 > 0)
            { Console.Write("Yes"); sure = true; }
            else if (d3 == (int)d3 && d3 > 0)
            { Console.Write("Yes"); sure = true; }
            else if (d4 == (int)d4 && d4 > 0)
            { Console.Write("Yes"); sure = true; }
            else if (d5 == (int)d5 && d5 > 0)
            { Console.Write("Yes"); sure = true; }
            else if (d6 == (int)d6 && d6 > 0)
            { Console.Write("Yes"); sure = true; }
            else
            {
                while ( a < 810 && a < a1)
                {
                    if (sure) break;
                    while ( b < 8100 && b < b1)
                    { if (sure) break;
                        while ( c < 810372 && c < c1)
                        {
                            if (a * 1234567 + b * 123456 + c * 1234 == x)
                            { sure = true; Console.Write("Yes"); break; }
                            c++;
                        }
                        b++;
                    }
                    a++;
                }
            }
            if (sure != true) { Console.Write("No"); }
        }
    }
}


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

namespace _16C___Монитор
{
    class Program
    {
        static long gcd(long a, long b)
        {
            while (a != b)
            {
                if (a < b) b -= a;
                else if (b < a) a -= b;
            }
            return a;
        }
        static void Main(string[] args)
        {
            string[] t = Console.ReadLine().Split(' ');
            long a = long.Parse(t[0]);
            long b = long.Parse(t[1]);
            long x = long.Parse(t[2]);
            long y = long.Parse(t[3]);
            if (Math.Min(x,y)>10000)
            {
                int d = gcd(x, y);
                x = x / d;
                y = y / d;
            }
            else
            {
                long d = 1;
                long min = Math.Min(x,y);
                for (int i = 1; i <= min; i++)
                {
                    if (x % i == 0 && y % i == 0)
                        d = i;
                }
                x = x / d;
                y = y / d;
            }
            double r1 = a * 1.0 / b;
            double r2 = x * 1.0 / y;
            if (r1 == r2)
            {
                Console.WriteLine(a + " " + b);
                return;
            }
            long newA = 0;
            long newB = 0;
            if (r1 > r2)
            {
                newB = (b / y) * y;
                newA = newB * x / y;
            }
            else
            {
                newA = (a / x) * x;
                newB = newA * y / x;
            }
            Console.WriteLine(newA + " " + newB);
        }
    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading.Tasks;
using System.IO;
using System.Globalization;
namespace ConsoleApplication1
{
    class Program
    {
        static int ReadIntLine()
        {
            return int.Parse(Console.ReadLine());
        }
        static void Main( )
        {
            var init = int.Parse(Console.ReadLine());
            var line1 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            var line2 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            var line3 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();

            var max1 = line1[1];
            var max2 = line2[1];
            var max3 = line3[1];

            var min1 = line1[0];
            var min2 = line2[0];
            var min3 = line3[0];

          //  var dip1 = Math.Min(init - min2 - min3, max1);
            //var dip2 = Math.Min(init - dip1 - min3, max2);
            //var dip3 = Math.Min(init - dip1 - dip2, max3);

            while (n>0)
            {
                if (min1 + min2 + min3 == n) break;
                if (min1 < max1) min1++;
                else if (min2 < max2) min2++;
                else if (min3 < max3) min3++;
            }

            Console.WriteLine(min1 + " " + min2 + " " + min3);

        }
    }
}


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

namespace ConsoleApplication7
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);

            int k = 0;
            if (n > m) k = n - m;
            else
            {

                while (n != m)
                {
                    if (n*2 - m<=1)
                    {
                        n *= 2;
                        k++;
                        continue;
                    }

                    n -= 1;
                    k++;

                }
            }

            Console.WriteLine(k);
        }
    }
}


#include <cstdio>
#include <queue>
using namespace std;

class Node
{
public:
	int num, operations;

	Node(int n, int o)
	{
		num = n;
		operations = o;
	}
};

int main()
{
	int m = 0, n = 0;

	scanf_s("%d %d", &n, &m);

	queue<Node> nums;

	nums.push(Node(n, 1));

	while (true)
	{
		Node temp = nums.back();

		int t1 = temp.num * 2;
		int t2 = temp.num - 1;

		if (t1== m || t2 == m)
		{
			printf_s("%d", temp.operations);
			return 0;
		}

		if (temp.num < m)
			nums.push(Node(t1, temp.operations + 1));

		if (temp.num > 0)
			nums.push(Node(t2, temp.operations + 1));
	}

	return 0;
}


 static void Main(string[] args)
        {
            int n, m, count=0, i;
            int[] array=new int[10009];
            string [] s=new string[2];
            string str=Console.ReadLine();
            s = str.Split(new char[]{' '});
            n = Int32.Parse(s[0]);
            m = Int32.Parse(s[1]);
            //Console.WriteLine("" + n + " " + m);
            i=m;
            if (n > m)
            {
                count = n - m;
            }
            else
            {
                while (i > n)
                {
                    if (i % 2 == 1) i = (i + 1) / 2;
                    else i /= 2;
                    array[i] = 1;
                }
                while (n != m)
                {
                    if (array[n] != 1) n--;
                    else n *= 2;
                    count++;
                }
            }

            Console.WriteLine(count);
            //Console.WriteLine(n);

        }