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

namespace _04_01_12_1_
{
    class Program
    {
        static void Main(string[] args)
        {
            string a=Console.ReadLine();
            string[] am=Regex.Split(a, @"\s+");

            int n, R, r;
            ang=0;

            n = int.Parse(am[0]);
            R = int.Parse(am[1]);
            r = int.Parse(am[2]);

            if (R < r)
                ang = 10;
            if (R >= r && R < r * 2)
                ang = Math.PI;
            if (R==2*r)
                ang = Math.PI / 2;
            if (R>2*r)
            {
                int g = R - r;
                int k = r;
                ang = Math.Asin((double)k / (double)g);
            }
            if (ang * n <= Math.PI+0.0000000001)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
            Console.ReadLine();
        }
    }
}


Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04_01_12(1)", "04_01_12(1)\04_01_12(1).csproj", "{20BDEE45-CE73-4390-B50C-B5A01EFCE401}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{20BDEE45-CE73-4390-B50C-B5A01EFCE401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{20BDEE45-CE73-4390-B50C-B5A01EFCE401}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{20BDEE45-CE73-4390-B50C-B5A01EFCE401}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{20BDEE45-CE73-4390-B50C-B5A01EFCE401}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


От NickSerg, контест: Codeforces Round #100, задача: (A) Новогодний стол, Неправильный ответ на претест 6, #

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

    namespace Codeforces
    {
        internal class Program
        {
            private static string Read()
            {
                return Console.ReadLine();
            }
            private static string[] ReadArray()
            {
                return Console.ReadLine().Split(' ');
            }
            private static int ReadInt()
            {
                return Int32.Parse(Console.ReadLine());
            }
            private static long ReadLong()
            {
                return long.Parse(Console.ReadLine());
            }
            private static int ReadNextInt(string[] input, int index)
            {
                return Int32.Parse(input[index]);
            }

            private static void Main()
            {
                var input = ReadArray();
                var n = ReadNextInt(input, 0);
                var rR = ReadNextInt(input, 1);
                var r = ReadNextInt(input, 2);
                if(r==rR && n == 1)
                {
                    Console.WriteLine("YES");
                    return;
                }
                if(r >= rR)
                {
                    Console.WriteLine("NO");
                    return;
                }
                if(2 * r > rR)
                {
                    if(n == 1)
                        Console.WriteLine("YES");
                    else
                    {
                        Console.WriteLine("NO");
                    }
                    return;
                }
                if(2 * r == rR)
                {
                    if(n <= 2)
                        Console.WriteLine("YES");
                    else
                    {
                        Console.WriteLine("NO");
                    }
                    return;
                }

                var a = 2 * Math.Asin((double) r/(rR - r));
                if(a * n <= 2 * Math.PI && a > 0)
                    Console.WriteLine("YES");
                else
                {
                    Console.WriteLine("NO");
                }

            }
        }
    }


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

namespace Contest
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine().Split(), Convert.ToInt32);
            int[] a = new int[n];
            a[0] = 1;
            for (int i = 1; i < n; i++)
                a[i] = a[i - 1] + 4*i;
            Console.WriteLine(a[n-1]);
        }
    }
}


using system;

public static void main()
{
    int count, zeroCount;
    string binaryNumber;

    count = int.Parse(Console.ReadLine());
    binaryNumber = Console.ReadLine();

    for(int i = 0;i<binaryNumber.Length;i++)
    {
        if(binaryNumber[i] == '0')
            zeroCount++;
    }

    Console.Write("1");
    for(int i=0;i<zeroCount;i++)
    {
        Console.Write("0");
    }
    Console.WriteLine();

}


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

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

            int numZero = s.Count(item => item == '0');
            if (!s.Contains("1")) Console.WriteLine(s);
            else {

                Console.Write("1");
                for (int i = 0; i < numZero; i++) Console.Write("0");

            }

        }
    }
}

        }
    }
}


n = input()
character = input()
print(character[0] + '0' * character[1:].count('0'))


using System;
using System.Linq;
using System.Reflection.Metadata;
using System.Text.RegularExpressions;

namespace Example
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
            var number = Console.ReadLine();
            var nullsAmount = number.Count(d => d.Equals('0'));
            Console.WriteLine(number == "0" ? "0" :"1" + new string('0', nullsAmount));
        }
    }
}


input()
characters = input()
zeroCounts = '0' * characters[1:].count('0')
if not zeroCounts.__contains__('0'):
    print(characters)
else:
    print(characters[0] + '0' * characters[1:].count('0'))


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

namespace ConsoleApplication
{
    public class Program
    {
        private static int m = (int)1e9+7;

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

            var c = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).OrderBy(x => x).ToArray();

            int r = 0;

            var p = new List<int>{1};
            int t = 1;
            long s;

            for (int i = 1; i < c.Length; i++)
            {
                for (int j = 0; j + i < c.Length; j++)
                {
                    s = (c[j + i] - c[j]) * t;
                    if (s >= m)
                        s -= m;

                    r += s;
                    if (r >= m)
                        r -= m;
                }

                t <<= 1;
                if (t >= m)
                    t -= m;
            }

            Console.WriteLine(r);
        }

        private static List<int> Pascal(List<int> r)
        {
            int s;

            var t = new List<int>{1};
            for (int j = 0; j < r.Count - 1; j++)
            {
                s = r[j] + r[j + 1];
                if (s >= m)
                    s -= m;

                t.Add(s);
            }

            t.Add(1);
            return t;
        }
    }
}


using System;
using System.Collections.Generic;

namespace test {
    class Class1 {
        static int change(char c) {
            if (c <= 'a')
                return c - 'A' + 'a';
            return c - 'a' + 'A';
        }

        public static void Main() {
            int
            string s = Console.ReadLine();
            bool flag = true;
            for (int i = 1; flag && i < s.Length; i++) {
                flag = s[i] < 'a';
            }
            if (!flag)
                Console.WriteLine(s);
            else
                Console.Write( s[0] < 'a' ? (char)(s[0] + 32) : (char)(s[0]  -  32));
                for (int i = 1; i < s.Length; i++) {
                    Console.Write((char)(c + 32));
                }
        }
    }
}


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

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var str = Console.ReadLine();
            if (str.Equals(str.ToUpper()))
                str = str.ToLower();
            else if (str.Substring(1).ToUpper().Equals(str.Substring(1)))
                str = str[0].ToString().ToUpper() + str.Substring(1).ToLower();
            Console.WriteLine(str);
         //  Console.ReadKey();

        }

    }


#include <cmath>
#include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;

char change(char c) {
	if (c >= 'A' && c <= 'Z')
		return c - 'A' + 'a';
	if (c >= 'a' && c <= 'z')
		return c - 'a' + 'A';
	return c;
}

int main() {
	string s;
	cin >> s;
	bool flag = true;
	for (int i = 1; flag && i < s.length(); i++) {
		flag = s[i] < 'a';
	}
	if (!flag)
		cout << s;
	else
		for (int i = 0; i < s.length(); i++) {
			printf("%c", change(s[i]));
		}
	return 0;
}


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

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

            char[] str = Console.ReadLine().ToCharArray();
            if (str[0] >= 'a' && str[0] <= 'z')
                {
                 str[0] = char.ToUpper(str[0]);
                }
           for (int i = 1; i < str.Length; i++)
            {
                if (str[i] >= 'A' && str[i] <= 'Z')
                {
                   str[i] = char.ToLower(str[i]);
                }
            }
            for (int i =0; i < str.Length; i++)
            {
                Console.Write(str[i]);
            }


        static char toUpper(char c)
        {
            if (c >= 'a' && c <= 'z')
                return (char)(c - 32);
            return c;
        }

        static char toLower(char c)
        {
            if (c >= 'A' && c <= 'Z')
                return (char)(c + 32);
            return c;
        }

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

            Console.Write(toUpper(str[0]));

            for (int i = 1; i < str.Length; i++)
            {
                Console.Write(toLower(str[i]));
            }

        }


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

namespace AscII_Code
{
    class Program
    {
        static void Main(string[] args)
        {
            string name = Console.Readline();
            bool capslock = true;
            char[] array = name.ToCharArray();
            Console.WriteLine("before for");
            for (int i = 1; i < array.Length; i++)
            {
                /* input the small letter */
                char c = array[i];
                Console.WriteLine(c);
                if (c >= 'a' && c <= 'z')
                {
                    capslock = false;
                }
            }
            Console.WriteLine("before if");
            if (capslock)
            {

                for (int i = 0; i < array.Length; i++)
                {

                    char c = array[i];
                    if (c >= 'a' && c <= 'z')
                    {
                        array[i] = (char)((int)c - 32);

                    }
                    if (c >= 'A' && c <= 'Z')
                    {
                        array[i] = (char)((int)c + 32);

                    }

                }
            }
            for (int i = 0; i < array.Length; i++)
            {
                Console.Write(array[i]);
            }
        }
    }
}


using System;
using System.Collections.Generic;

namespace test {
    class Class1 {

        public static void Main() {
            int
            string s = Console.ReadLine();
            bool flag = true;
            for (int i = 1; flag && i < s.Length; i++) {
                flag = s[i] < 'a';
            }
            if (!flag)
                Console.WriteLine(s);
            else
                Console.Write( s[0] < 'a' ? (char)(s[0] + 32) : (char)(s[0]  -  32));
                for (int i = 1; i < s.Length; i++) {
                    Console.Write((char)(s[i] + 32));
                }
        }
    }
}


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

namespace Codeforces
{
    class Program
    {
        #region 131A cAPS lOCK
        static void Main(string[] args)
        {
            string str = Console.ReadLine();
            string result;
            bool a = false, b = true;

            if (str.Length == 1)
            {
                if (Char.IsLower(str[0]))
                    result = Char.ToUpper(str[0]).ToString();
                else result = str;
            }
            else if (str.Length == 0)
                Console.WriteLine("");
            else
            {
                if (Char.IsUpper(str[0]))
                    a = true;
                for (int i = 1; i < str.Length; i++)
                {
                    if (Char.IsLower(str[i]))
                        b = false;
                }

                if (a && b)
                {
                    result = str[0].ToString();
                    str = str.ToLower().Remove(0, 1);
                    result += str;
                }
                else if (!a && b)
                {
                    result = char.ToUpper(str[0]).ToString();
                    str = str.ToLower().Remove(0, 1);
                    result += str;
                }
                else if (!a && !b)
                {
                    result = char.ToUpper(str[0]).ToString();
                    str = str.Remove(0, 1);
                    result += str;
                }
                else
                    result = str;
            }
            Console.WriteLine(result);
        }
        #endregion
    }
}


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

namespace task1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            if (Rule1(s))
                Console.WriteLine(s.ToLower());
            else if (Rule2(s))
                Console.WriteLine(char.ToUpper(s[0])+s.Substring(1).ToLower());
            else
                Console.WriteLine({s});
        }
        public static bool Rule1(string word)
        {
            return word.All(c => char.IsUpper(c));
        }
        public static bool Rule2(string word)
        {
            return Rule1(word.Substring(1)) && char.IsLower(word[0]);
        }
    }
}


using System;

namespace capslock
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            string str = Console.ReadLine();
            char ch;

            if (str.Length > 1)
            {
                for (int i = 1; i < str.Length; i++)  /
                {
                    ch = str[i];
                    if (ch >= 'a' && ch <= 'z')
                    {
                        Console.WriteLine(str);
                        return;
                    }
                }
            }

            string result = "";
            foreach (char character in str)
            {
                result += switchcase(character);
            }
            Console.WriteLine(result);
        }

        public static char switchcase(char ch)
        {
            if (ch >= 'a' && ch <= 'z')
                return (char)(ch - 32);
            if (ch >= 'A' && ch <= 'Z')
                return (char)(ch + 32);
            return ch;
        }
    }
}


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

namespace CapsLock
{
    class Program
    {
        static void Main(string[] args)
        {
            string ds = Console.ReadLine().ToLower();
            string a = ds[0] + "";
            string b =a.ToUpper();
            string res ="";
            if (ds.Length > 1)
                for (int i = 1; i < ds.Length; i++)
                    res += ds[i];
            Console.WriteLine(b+res);

        }
    }
}


using System;

namespace A131
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            bool mayus = true;

            foreach (char letter in input.Substring(1))
            {
                if (char.IsUpper(letter))
                    mayus = false;
            }

            Console.WriteLine(mayus ? (char.ToUpper(input[0]) + input.Substring(1)) : input;
        }
    }
}


using System;
using System.Text;

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

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

        return true;
    }

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

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


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

namespace Ejercicios
{
    class Program
    {
        static string funcion (string str)
        {
            string newStr = "", first;

            if (str.Length == 1 && isLower(str[0]))
                return str.ToUpper();

            if (str.Length == 1 && isUpper(str[0]))
                return str.ToLower;

            if (isUpper(str[0])){
                if (rest(str))
                    return str.ToLower();
                else
                    return str;
            }
            else
            {
                if (rest(str))
                {
                    first = str[0].ToString().ToUpper();
                    newStr = str.Substring(1);
                    newStr = first + newStr.ToLower();
                    return newStr;
                }
                else
                {
                    return str;
                }

            }
        }

        static bool rest (string str){
            for (int i = 1; i < str.Length; i++)
            {
                if (isLower(str[i]))
                    return false;
            }
            return true;
        }

        static bool isUpper(char letter)
        {
            string alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            for (int i = 0; i < alpha.Length; i++)
            {
                if (letter == alpha[i])
                return true;
            }
            return false;
        }

        static bool isLower(char letter)
        {
            string alpha = "abcdefghijklmnopqrstuvwxyz";
            for (int i = 0; i < alpha.Length; i++)
            {
                if (letter == alpha[i])
                    return true;
            }
            return false;
        }

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


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

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

            int count = 0;

            for (int i = 1; i < s.Length; i++)
                if (s[i].ToString().ToLower() == s[i].ToString())
                    count++;

            if ((count == 0 && s[0].ToString().ToLower() == s[0].ToString()) ||
                (count == s.Length - 1 && s[0].ToString().ToUpper() == s[0].ToString()))
                s = s[0].ToString().ToUpper() + s.Substring(1).ToLower();
            else if (count == 0 && s[0].ToString().ToUpper() == s[0].ToString() || s.Length == 1)
                s = s.ToLower();

            Console.Write(s);
            Console.Read();
        }
    }


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

namespace _5
{
    class Program
    {
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            char[] c = n.ToCharArray();

            bool v = true;
            int i = 1;
            if(c.Length==1)
            {
                i--;
            }
            for (; i < c.Length; i++)
            {
                if (c[i].CompareTo('a') < 0)
                {
                    continue;
                }
                else
                {

                    v = false;
                }
            }
            if (v == true)
            {

                for (int i = 0; i < c.Length; i++)
                {
                    if (c[i].CompareTo('a') < 0)
                    {
                        char a = char.ToLower(c[i]);
                        c[i] = a;
                        continue;
                    }
                    if (c[i].CompareTo('a') > 0)
                    {
                        char a = char.ToUpper(c[i]);
                        c[i] = a;
                    }
                }
                c.ToString();
                Console.WriteLine(c);
            }
            else
            {
                c.ToString();
                Console.WriteLine(c);
            }

        }
    }
}


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

namespace test
{
    class program
    {
        static void Main(string [] args)
        {
            string text = Console.ReadLine();
            if(text.Length >=1 && text.Length <=100)
            {
                char firstchar = char.ToUpper(text[0]);
                string substr = text.Substring(1, text.Length-1).ToLower();
                string res= firstchar + substr;
                Console.WriteLine(res);
            }

        }
    }
}


using System;
class test
{
	public static void Main()
	{
		string input = Console.ReadLine();
		input = input.ToLower();
		input[0] = input[0].ToUpper();

		Console.WriteLine(input)
	}
}


namespace Practicing_Solving_Problems
{
    class Program
    {
        static void Main(string[] args)
        {
            string text = Console.ReadLine();
            if(text.Length >=1 && text.Length <=100)
            {
                char firstchar = char.ToUpper(text[0]);
                string substr = text.Substring(1, text.Length-1).ToLower();
                string res= firstchar + substr;
                Console.WriteLine(res);
            }
        }
    }
}


using System;

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


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.421
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{606D1DDC-7A70-4824-9C48-BFB3D086A751}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{606D1DDC-7A70-4824-9C48-BFB3D086A751}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{606D1DDC-7A70-4824-9C48-BFB3D086A751}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{606D1DDC-7A70-4824-9C48-BFB3D086A751}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{606D1DDC-7A70-4824-9C48-BFB3D086A751}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {E4C108B5-AECD-4E34-81A3-AAB169AA4F9A}
	EndGlobalSection
EndGlobal


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

namespace ConsoleApplication1
{
    class Program
    {
        static bool isPrime(int number)
        {
            if (number < 2) return false;
            for (int i = 2; i <= Math.Sqrt(number); i++)
            {
                if (number % i == 0) return false;
            }
            return true;
        }
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] s1 = s.Split(' ');
            int a = int.Parse(s1[0]);
            int m = int.Parse(s1[1]);
            int[] b = new int[100000];
            int j=1;
            bool c = false;
            for (int i = 2; i <= 100000; i++)
                if (isPrime(i))
                {
                    b[j] = i;
                    j++;
                }
            for (int i = 1; i<=j; i++)
                if (m == b[i])&&
                {
                    Console.WriteLine("No");
                    c = true;
                    break;
                }
            if (!c) Console.WriteLine("Yes");
        }
    }
}


using System;

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

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

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

            Console.WriteLine(n*m/2);
        }
    }
}


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

class Exercise11
{

    static void Main()
    {
        int n = 0, m = 0, area = 0;
        string[] input = null;

        input = Console.ReadLine().Split(" ");

        n = Convert.ToInt32(input[0]);
        m = Convert.ToInt32(input[1]);

        area = n * m;

        Console.WriteLine($"{n} : {m} = {area}");
        area = area % 2;

        if (area == 1)
        {

            double res = (n * m) / 2;

            Console.WriteLine(Math.Round(res));
        }
        else {
            Console.WriteLine((n * m / 2));
        }

        Console.ReadKey();
    }

}


using System;

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

           int m =int.Parse (Console.ReadLine());
           int n = int.Parse(Console.ReadLine());
           int k = n * m;
           if(k % 2 == 0)
           {
           Console.WriteLine(k / 2);
           }else{
               int v = k % 2
               k = k - v
           Console.WriteLine(k / 2);
           }
        }
    }
}


using System;

public class Program
{
	public static void Main()
	{
		int m,n;

		string input1 = Console.ReadLine();
		char[] whitespace = new char[] { ' ', '\t' };
		string[] numbers = input1.Split(whitespace);

			string first = numbers[0];
		    string second = numbers[1];

		    Int32.TryParse(first, out m);
		    Int32.TryParse(second, out n);

		int x = (m*n)/2;
		Console.WriteLine(x);


#include<iostream>
using namespace std;

int dominoSize(int x, int y){
    return (x*y)/2;
}

int main(){
    int a;
    int b;
    cin>>a;
    cin>>b;
    cout<<dominoSize(a,b)<<endl;
}


# -*- coding: utf-8 -*-
N,M = map(int, input().split())
print(int(M*N/2))


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

public class Team
{

    public void Solve()
    {
        var n = ReadInt();
        var input = ReadLines(n);
        var winningCombos = new HashSet<string>(new string[] { "1 0 1", "1 1 0", "1 1 1", "0 1 1" });
        var count = input.Count(s => winningCombos.Contains(s.Trim()));
        WriteLines(new string[] { count.ToString() });
    }

    protected static TextReader reader;
    protected static TextWriter writer;
//    public static void Main()
//    {
//#if DEBUG
//        //reader = new StreamReader("..\\..\\input.txt");
//        reader = new StreamReader(Console.OpenStandardInput());
//        writer = Console.Out;
//        //writer = new StreamWriter("..\\..\\output.txt");
//#else
//        reader = new StreamReader(Console.OpenStandardInput());
//        writer = new StreamWriter(Console.OpenStandardOutput());
//#endif
//        try
//        {
//            new Team().Solve();
//        }
//        catch (Exception ex)
//        {
//            Console.WriteLine(ex);
//#if DEBUG
//#else
//            throw;
//#endif
//        }
//        reader.Close();
//        writer.Close();
//    }

    private static Queue<string> currentLineTokens = new Queue<string>();
    private static string[] ReadAndSplitLine() { return reader.ReadLine().Split(new[] { ' ', '\t', }, StringSplitOptions.RemoveEmptyEntries); }
    public static string ReadToken() { while (currentLineTokens.Count == 0) currentLineTokens = new Queue<string>(ReadAndSplitLine()); return currentLineTokens.Dequeue(); }
    public static int ReadInt() { return int.Parse(ReadToken()); }
    public static long ReadLong() { return long.Parse(ReadToken()); }
    public static double ReadDouble() { return double.Parse(ReadToken(), CultureInfo.InvariantCulture); }
    public static int[] ReadIntArray() { return ReadAndSplitLine().Select(int.Parse).ToArray(); }
    public static long[] ReadLongArray() { return ReadAndSplitLine().Select(long.Parse).ToArray(); }
    public static double[] ReadDoubleArray() { return ReadAndSplitLine().Select(s => double.Parse(s, CultureInfo.InvariantCulture)).ToArray(); }
    public static int[][] ReadIntMatrix(int numberOfRows) { int[][] matrix = new int[numberOfRows][]; for (int i = 0; i < numberOfRows; i++) matrix[i] = ReadIntArray(); return matrix; }
    public static int[][] ReadAndTransposeIntMatrix(int numberOfRows)
    {
        int[][] matrix = ReadIntMatrix(numberOfRows); int[][] ret = new int[matrix[0].Length][];
        for (int i = 0; i < ret.Length; i++) { ret[i] = new int[numberOfRows]; for (int j = 0; j < numberOfRows; j++) ret[i][j] = matrix[j][i]; }
        return ret;
    }
    public static string[] ReadLines(int quantity) { string[] lines = new string[quantity]; for (int i = 0; i < quantity; i++) lines[i] = reader.ReadLine().Trim(); return lines; }
    public static void WriteArray<T>(IEnumerable<T> array) { writer.WriteLine(string.Join(" ", array)); }
    public static void Write(params object[] array) { WriteArray(array); }
    public static void WriteLines<T>(IEnumerable<T> array) { foreach (var a in array) writer.WriteLine(a); }
    private class SDictionary<TKey, TValue> : Dictionary<TKey, TValue>
    {
        public new TValue this[TKey key]
        {
            get { return ContainsKey(key) ? base[key] : default(TValue); }
            set { base[key] = value; }
        }
    }
    private static T[] Init<T>(int size) where T : new() { var ret = new T[size]; for (int i = 0; i < size; i++) ret[i] = new T(); return ret; }
}


waight = int(input())
if waight % 2 == 0 and waight != 2:
    print("YES")
else :
    print("NO")


using System;

class CodeForces
{

    public static void main()
    {
        int m = Int32.Parse(Console.ReadLine());
        int n = Int32.Parse(Console.ReadLine());
        Console.WriteLine(m + " " + n);
    }

}


using System;

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

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

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

            Console.WriteLine((n*m)/2);

        }
    }
}


using System;

class Program
{
    public static void Main(string[] args)
    {
        uint height,width;
        string[] input=Console.ReadLine().Split();
        height=uint.Parse(input[0]);
        width=uint.Parse(input[1]);
        if(height%2==0||width%2==0)
            //exactly fillable
            return height*width/2;
        else
            //one square will be left at max
            return (height*width-1)/2;
    }
}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{52D6A1B2-5DAF-4FBD-988D-BD05EB6B78CC}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{52D6A1B2-5DAF-4FBD-988D-BD05EB6B78CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{52D6A1B2-5DAF-4FBD-988D-BD05EB6B78CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{52D6A1B2-5DAF-4FBD-988D-BD05EB6B78CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{52D6A1B2-5DAF-4FBD-988D-BD05EB6B78CC}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {59449E18-7893-4000-9B74-0AB049739DF1}
	EndGlobalSection
EndGlobal


Console.WriteLine("enter M ");
            int m = int.Parse(Console.ReadLine());

            Console.WriteLine("enter N ");
            int n = int.Parse(Console.ReadLine());

            int x = m * n;
            int result = x / 2;
            Console.WriteLine(result);


using System;
using System.Text;

namespace program{
    class program{
        static void Main(string[] args){
            int[] NxM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();

            Console.WriteLine("{0}", (NxM[0] * NxM[1]) / 2);
        }
    }
}


using System;

namespace tern_oper
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] choice = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int area = choice[0] * choice[1];
            Console.WriteLine(area / 2);

        }
    }
}


using System

publico class Program
{
    public static void Main ()
    {
        var strs = Console.ReadLine().Spilit(' ');
Console.WriteLine(int.Parse(strs[0])*int.Parse(strs[1])/2);

    }
}


using System;
using System.Linq;
using NUnit.Framework;

namespace codeforces
{
    class Problem50A
    {
        static int Main(string[] args)
        {
            var input = Console.ReadLine().Split(new[] { ' ' }).Select(Int16.Parse).ToArray();

            var dominos = CountDominos(input[0], input[1]);
            Console.WriteLine(dominos);

            return 0;
        }

        internal static int CountDominos(int m, int n)
        {
            return m*n/2;
        }
    }

    [TestFixture]
    public class Tests50A
    {
        [TestCase(2, 4, 4)]
        [TestCase(3, 3, 4)]
        public void CountTaxisTestCase1(int m, int n, int expected)
        {
            var dominos = Problem50A.CountDominos(m, n);
            Assert.That(dominos, Is.EqualTo(expected));
        }
    }
}


using System

public class Program
{
    public void Main ()
    {
        var strs = Console.ReadLine().Spilit(' ');
Console.WriteLine(int.Parse(strs[0])*int.Parse(strs[1])/2);

    }
}


using System;

class Exercise11
{

    static void Main()
    {
        int n = 0, m = 0, area = 0;
        string[] input = null;

        input = Console.ReadLine().Split(" ");

        n = Convert.ToInt32(input[0]);
        m = Convert.ToInt32(input[1]);

        area = n * m;

        Console.WriteLine($"{n} : {m} = {area}");
        area = area % 2;

        if (area == 1)
        {

            double res = (n * m) / 2;

            Console.WriteLine(Math.Round(res));
        }
        else {
            Console.WriteLine((n * m / 2));
        }

        Console.ReadKey();
    }

}


using System;
using System.Text;
using System.Net;

namespace Hey{
    class program{
        static void Main(string[] args){
            int[] NxM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();

            Console.WriteLine("{0}", (NxM[0] * NxM[1]) / 2);
        }
    }
}


using System;

class Exercise11
{

    static void Main()
    {
        int n = 0, m = 0, area = 0;
        string[] input = null;

        input = Console.ReadLine().Split(" ");

        n = Convert.ToInt32(input[0]);
        m = Convert.ToInt32(input[1]);

        // calculate area
        area = n * m;

        // check if domino fits into area
        area = area % 2;

        if (area == 1)
        {

            // if its not enough space for 1 or more dominos round the result down
            double res = (n * m) / 2;

            Console.WriteLine(Math.Round(res));
        }
        else {
            Console.WriteLine((n * m / 2));
        }

        Console.ReadKey();
    }

}


using System;
namespace _50A
{
  Class Solution
{
static void Main()
{
string[] Input = Console.ReadLine().Split(' ');
int M = Convert.ToInt32(Input[0]);
int N = Convert.ToInt32(Input[1]);
Console.WriteLine(M*N%2);
}
}
}


using System;
using System.Text;
using String;

namespace Hey{
    class program{
        static void Main(string[] args){
            int[] NxM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();

            Console.WriteLine("{0}", (NxM[0] * NxM[1]) / 2);
        }
    }
}


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

namespace test
{
    Class Program
    {
        public static void Main(string[] args)
            {

                int[] choice = Console.ReadLine().Split().Select(int.Parse).ToArray();
                int area = choice[0] * choice[1];
                Console.WriteLine(area/2);

            }
    }

}


<?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>{BD024ED4-66C2-43B3-8788-43D658FF5904}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>DominoPiling</RootNamespace>
    <AssemblyName>DominoPiling</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <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.Data;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Collections.Immutable;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = Console.ReadLine();
            var b = Console.ReadLine();
            int x,y;
            int.TryParse(a, out x) ;
            int.TryParse(b, out y);
            int c = x * y / 2;
            Console.WriteLine(c);
        }
    }
}


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

namespace JobApplications.Practice
{
    class DominoPilling
    {
        static void Main(string[] args)
        {
            int m,n;
            string mn = Console.ReadLine();
            string[] inputs = mn.Split(" ");
            int.TryParse(inputs[0], out m);
            int.TryParse(inputs[1], out n);

            Console.WriteLine((m * n) / 2);
        }
    }
}


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

namespace code_forces.Exercises
{
    class A50
    {
        static void Main3(string[] args)
        {
            string[] split = args;
            var num = Console.ReadLine().Split(' ');
            Dictionary<int,int> Field = new Dictionary <int, int>();
            int SideA = int.Parse(num[0]);
            int SideB = int.Parse(num[1]);
            int a = 1;
            int b = 2;

            SideA = (SideA % a == 0) ? SideA / a : SideA % a - 1;
            SideB = (SideB % b == 0) ? SideB / b : SideB % b - 1;

            var answer = SideB;
            Console.WriteLine(SideB);

        }
    }
}


using System.IO;

class Program
{
    int Main()
    {
        var v = Console.ReadLine().Split(' ');
        Console.WriteLine(v[0] * v[1] / 2);
    }
}


using System

public class Program
{
    public static void Main ()
    {
        var strs = Console.ReadLine().Spilit(' ');
Console.WriteLine(int.Parse(strs[0])*int.Parse(strs[1])/2);

    }
}


using System;

public class Program
{
	public static void Main()
	{
		int[] MN = Console.ReadLine().Split().Select(i => int.Parse(i))
			.ToArray();
		int M = MN[0], N = MN[1];
		Console.WriteLine(M * N / 2);
	}
}


using System;
class Task
{
    static void Main()
    {
        String s=Console.ReadLine().Split();
        int a=int.Parse(s[0]);
        int b=int.Parse(s[1]);
        Console.WriteLine(a/b);

    }

}


using System

public static class Program
{
    public void Main ()
    {
        var strs = Console.ReadLine().Spilit(' ');
Console.WriteLine(int.Parse(strs[0])*int.Parse(strs[1])/2);

    }
}


namespace Domino_Piling
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split();
            int m = int.Parse(ss[0]);
            int n = int.Parse(ss[1]);
            int num;
            num = (m * n) / 2;
            Console.WriteLine(num);

        }
    }
}


using System;

class Program
{
    static void Main(string[] args)
    {
        int m, n;
        string[] line = Console.ReadLine().Split(" ");
        m = Convert.ToInt32(line[0]);
        n = Convert.ToInt32(line[1]);

        Console.WriteLine((m * n) / 2);

    }
}


using System;

public class Program {
	static void Main() {

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

		Console.WriteLine(int.Parse(ci[0]) * int.Parse(ci_n[1]) / 2);

	}
}


using System;
using System.Text;

namespace Hey{
    class program{
        static void Main(string[] args){
            int[] NxM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();

            Console.WriteLine("{0}", (NxM[0] * NxM[1]) / 2);
        }
    }
}


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

namespace CSharp_Shell
{

    public static class Program
    {
        public static void Main()
        {
        	string MN = Console.ReadLine().Split(' ');
          int M = Int16.Parse(MN[0]);
          int N = Int16.Parse(MN[1]);
          int R = (M * N) / 2;
          Console.WriteLine(R);
        }
    }
}


using System;
class Task
{
    static void Main()
    {
        String s=Console.WriteLine().Split();
        int a=int.Parse(s[0]);
        int b=int.Parse(s[1]);
        Console.WriteLine(a/b);

    }

}


using System;

namespace _50A_Domino_piling
{
    class Program
    {
        static void Main(string[] args)
        {
            long m, n, x, y;
            var input = Console.ReadLine();
            var mn = input.Split(" ");
            m = long.Parse(mn[0]);
            n = long.Parse(mn[1]);

            x = m * n;
            y = x / 2;

            Console.WriteLine(y);
        }
    }
}


using System;
using System.Numerics;
class Program
{
    static void Main(string[] args)
    {
        string tokens[] = Console.ReadLine().Split(' ');
        Console(BigInteger.Parse(tokens[0]) * BigInteger.Parse(tokens[1]) / 2);
    }
}


using System;
class Task
{
    static void Main()
    {
        String[] s=Console.WriteLine().Split();
        int a=int.Parse(s[0]);
        int b=int.Parse(s[1]);
        Console.WriteLine(a*b/2);

    }

}


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

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

            int m = Int32.Parse(Console.ReadLine());

            Console.WriteLine((n*m)/2);

        }
    }
}


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

namespace Dubstep
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string s1 = "";
            for (int i = 0; i < s.Length; i++)
            {
                if (i < s.Length - 2 && s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B')
                {
                    if (s1 != "" && s1[s1.Length - 1] != ' ') s1 += ' ';
                    i += 2;
                }
                else s1 += s[i];
            }
            Console.WriteLine(s1);
        }
    }
}


using System;

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


using System;
 class Program
    {
        static void Main(string[] args)
        {
            string[] sep = { "WUB" };
            string[] input = Console.ReadLine().Split(sep, StringSplitOptions.RemoveEmptyEntries);
            StringBuilder bldr = new StringBuilder();
            for (int i = 0; i < input.Length; ++i)
                bldr.AppendFormat("{0} ", input[i]);
            Console.WriteLine(bldr.ToString(0, bldr.Length - 1));
        }
    }


using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace CodingPractice
{
    class Dubstep
    {
        public static void Main(string[] args)
        {
            string input = Console.ReadLine().Split("WUB").
                Aggregate((x,y) => x.Trim()+ " " + y.Trim());

            Console.WriteLine(input);
        }
    }
}


    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] arr = input.Replace("WUB", " ").Trim().Split(' ');
            for (int i = 0; i != arr.Length; i++)
            {
                if (arr[i] != null && arr[i].Length > 0)
                    Console.Write(arr[i] + " ");
            }
        }
    }


using System;

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

            string[] result = word.Split(new[] { "WUB" }, StringSplitOptions.RemoveEmptyEntries);

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


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

namespace DubstepTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] arr = input.Replace("WUB", " ").Trim().Split(' ');
            for (int i = 0; i != arr.Length; i++)
            {
                if (arr[i] != null && arr[i].Length > 0)
                    Console.Write(arr[i] + " ");
            }
        }
    }
}


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

namespace ConsoleApplication16
{
    class Program
    {
        static void Main(string[] args)
        {
            String w = Console.ReadLine();

            while(word.StartsWith("WUB")) w = w.Substring(3);
            while (word.EndsWith("WUB")) w = w.Substring(0, w.Length - 3);

            Console.WriteLine(String.Join(" ", w.Split(new[] { "WUB" }, StringSplitOptions.RemoveEmptyEntries)));
        }
    }
}


            StringBuilder input = new StringBuilder(Console.ReadLine());

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


using System;

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


            string input = Console.ReadLine();
            input = input.Replace("wub", " ");
            string trim = input.Trim();
            Console.WriteLine(trim);


using System;

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

            string[] result = word.Split("WUB", StringSplitOptions.RemoveEmptyEntries);

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


 string input = Console.ReadLine();
        input = input.Replace("wub", "");
        Console.WriteLine(input);


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

namespace Dubstep
{
    class Program
    {
        static void Main(string[] args)
        {
            string dub="WUB";
            string song = Console.ReadLine();
            string e = ""; int i = 0, k = 0;
            while (song[i] == dub[0] && song[i + 1] == dub[1] && song[i + 2] == dub[2]) i += 3;
            while (i<song.Length)
            {
                 k = 0;
                 while (i < (song.Length-2) && song[i] == dub[0] && song[i + 1] == dub[1] && song[i + 2] == dub[2])
                    {
                        k = 1;
                        i += 3;
                    }
                if (k == 1) e += " ";
                else
                 {
                     e += song[i];
                     i++;
                 }

              }

            Console.WriteLine(end);
        }
    }
}


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            int y;
            y = Convert.ToInt32(x)+1;
            bool z = false;
            while(z==true){
                bool exit=false;
                string z;
                z = y.ToString();
                for(int i=0; i<3; i++){
                    for(int j=i+1; j<4; j++){
                        if(y[i]==y[j]){
                            z = false;
                            exit = true;
                            break;
                        }
                        else{
                            z = true;
                        }
                    }
                    if(exit==true){
                        break;
                    }
                    if(z==true){
                        break;
                    }
                }
                y++;
            }
            Console.Write(y);
        }
    }
}


using System;
using System.Diagnostics.Tracing;
namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            int c = Convert.ToInt32(Console.ReadLine());
            for (int i = ++c; i < 9001; i++)
            {
                string b = i.ToString();
                if (ass(b))
                {
                    Console.WriteLine(i);
                    break;
                }
            }

        }
        public static bool ass(string aa)
        {
           int counter = 0;
            for (int i = 0; i <=9; i++)
            {
                int aaa = i + 48;
                char bb = (char) aaa;
                if (aa.Contains(bb)) counter++;
            }
            if (counter == 4) return true;
            return false;
        }
    }
}


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

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

int  c_year;
string n_year;
            m = Convert.int32(Console.ReadLine());

            c_year++;
            while (true)
            {
              n_year =Convert.ToString(c_year);
                if  (n_year[1] !=  n_year[0] &&  n_year[0] !=  n_year[2] &&  n_year[3] !=  n_year[0] && n_year[1] !=  n_year[2] &&  n_year[1] !=  n_year[3] &&  n_year[2] !=  n_year[3])
                {
                   Console.WriteLine( n_year);
                }

               		     c_year++;
	}

}
}
}


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

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

int[] year=new int[4];
for(int i=0;i<year.length;i++)
{

    year[i]=int.parse(console.readline());
}

for(int i=0;i<year.length;i++)
{
    if(year[i]!=year[i+1]&&year[0]!=year[3]&&year[1]!=year[3]&&year[0]!=year[2])
     {
    for(int s=0;s<year.length;s++)
            {
                 year[3]+1;
                console.write(year[i]);
            }
     }
     else
     {
         for(int k=0;k<year.length;k++)
            {
                 year[3]+1;
            }
     }

}

        }
    }
}


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

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

            for (int i = given + 1; i++)
            {
                var year = i.ToString().ToCharArray();

                if (year.Distinct().Count() == year.Length)
                {
                    Console.WriteLine(year);
                    break;
                }
            }

            Console.Read();
        }
    }
}


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

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

int  c_year;
string n_year;
             c_year=Convert.ToInt32(Console.ReadLine());

            c_year++;
            while (true)
            {
              n_year =Convert.ToInt32(c_year);
                if  (n_year[1] !=  n_year[0] &&  n_year[0] !=  n_year[2] &&  n_year[3] !=  n_year[0] && n_year[1] !=  n_year[2] &&  n_year[1] !=  n_year[3] &&  n_year[2] !=  n_year[3])
                {
                   Console.WriteLine( n_year);
                }

               		     c_year++;
	}

}
}
}


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

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

int  c_year;
string n_year;
            m = int.parse(Console.ReadLine());

            c_year++;
            while (true)
            {
              n_year =Convert.ToString(c_year);
                if  (n_year[1] !=  n_year[0] &&  n_year[0] !=  n_year[2] &&  n_year[3] !=  n_year[0] && n_year[1] !=  n_year[2] &&  n_year[1] !=  n_year[3] &&  n_year[2] !=  n_year[3])
                {
                   Console.WriteLine( n_year);
                }

               		     c_year++;
	}

}
}
}


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

using System.Text.RegularExpressions;

class Program
{
    static public int[] readIntArray()
    {
        return (from string s in Console.ReadLine().Split(' ') select Convert.ToInt32(s)).ToArray();
    }
    static public long[] readLongArray()
    {
        return (from string s in Console.ReadLine().Split(' ') select Convert.ToInt64(s)).ToArray();
    }
    static public ulong[] readULongArray()
    {
        return (from string s in Console.ReadLine().Split(' ') select Convert.ToUInt64(s)).ToArray();
    }
    public static int readInt()
    {
        return Convert.ToInt32(Console.ReadLine());
    }

    static void Main(string[] args)
    {
        BeutifulTear();

    }
    static void BeutifulTear()
    {
        int n = readInt();
        for(int i = n+1;i < 90000 i++)
        {
            //check
            char[] year = i.ToString().ToArray();
            HashSet<char> foo = new HashSet<char>(year);
            if(foo.Count == 4)
            {
                Console.WriteLine(i);
            }
        }

    }

}


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

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

int  c_year;
string n_year;
            m = int.parse(Console.ReadLine());

            c_year++;
            while (true)
            {
              n_year =Convert.ToInt32(c_year);
                if  (n_year[1] !=  n_year[0] &&  n_year[0] !=  n_year[2] &&  n_year[3] !=  n_year[0] && n_year[1] !=  n_year[2] &&  n_year[1] !=  n_year[3] &&  n_year[2] !=  n_year[3])
                {
                   Console.WriteLine( n_year);
                }

               		     c_year++;
	}

}
}
}


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

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

int  c_year;
string n_year;
            m =Convert.ToInt32(Console.ReadLine());

            c_year++;
            while (true)
            {
              n_year =Convert.ToInt32(c_year);
                if  (n_year[1] !=  n_year[0] &&  n_year[0] !=  n_year[2] &&  n_year[3] !=  n_year[0] && n_year[1] !=  n_year[2] &&  n_year[1] !=  n_year[3] &&  n_year[2] !=  n_year[3])
                {
                   Console.WriteLine( n_year);
                }

               		     c_year++;
	}

}
}
}


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

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

int[] year=new int[4];
for(int i=0;i<year.length;ه++)
{

    year[i]=int.parse(console.readline());
}

for(int i=0;i<year.length;i++)
{
    if(year[i]!=year[i+1]&&year[0]!=year[3]&&year[1]!=year[3]&&year[0]!=year[2])
     {
    for(int s=0;s<year.length;s++)
            {
                 year[3]+1;
                console.write(year[i]);
            }
     }
     else
     {
         for(int k=0;k<year.length;k++)
            {
                 year[3]+1;
            }
     }

}

        }
    }
}


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

namespace DominoPiling
{
    public class BeautifulYear
    {
        public static void Main(string[] args)
        {
            int year = int.Parse(Console.ReadLine());
            int result = 0;

            foreach(var y in Enumerable.Range(year,9000-year+1))
            {
                var count = y.ToString().Select(c => int.Parse(c)).Distinct().Count();

                if (count == 4)
                {
                    result = y;
                    break;
                }
            }

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


using System;

static int Main()
{
    int n;
    int @out;
    int @in;
    int a = 0;
    int max = 0;
    n = int.Parse(Console.ReadLine());
    for (int i = 0; i < n; i++)
    {
        @out = int.Parse(Console.ReadLine());
        @in = int.Parse(Console.ReadLine());
        a -= @out;
        a += @in;
        if (a > max)
        {
            max = a;
        }
    }
    Console.Write(max);
    return 0;
}


<?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>{63499551-EA5E-492C-B76A-CE76E18768FE}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>krasivuigod</RootNamespace>
    <AssemblyName>krasivuigod</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>


int y = int.Parse(Console.ReadLine());
            for (int i = y + 1;; i++)
            {
                string s = i.ToString();
                bool[] flag = new bool[10];
                for (int j = 0; j < s.Length; j++)
                {
                    int digit = int.Parse(s[j].ToString());
                    flag[digit] = true;
                }
                int count = 0;
                for (int j = 0; j < 10; j++)
                    if (flag[j])
                        count++;
                if (count == 4)
                {
                    Console.WriteLine(i.ToString());
                    break;
                }
            }


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

namespace DominoPiling
{
    public class BeautifulYear
    {
        public static void Main(string[] args)
        {
            int year = int.Parse(Console.ReadLine());
            int result = 0;

            foreach(var y in Enumerable.Range(year,9000-year+1))
            {
                var count = y.ToString().Select(c => int.Parse(c)).Distinct().Count();

                if (count == 4)
                {
                    result = y;
                    break;
                }
            }

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


class Exercise11
{
static void Main()
{
int y = Convert.ToInt32(Console.ReadLine());
int a, b, c, d;
while (true)
{
y = y + 1;
a = y / 1000;
b = y / 100 % 10;
c = y / 10 % 10;
d = y % 10;
if (a != b && a != c && a != d && b != c && b != d && c != d)
{
break;
}
}
Console.WriteLine(y);
}
}


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

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

int[] year=new int[4];
for(int i=0;i<year.length;i++)
{
    comsole.writeline("enter number "+i+" of year");
    year[i]=Convert.ToInt32(console.readline());
}

for(int i=0;i<year.length;i++)
{
    if(year[0]!=year[1]&&year[1]!=year[2]&&year[2]!=year[3]&&year[0]!=year[3]&&year[1]!=year[3]&&year[0]!=year[2])
     {
                 year[3]+=1;
                console.write(year[i]);
	break;

     }
     else
     {
                 year[3]+=1;
     }

}

}
}
}


static void Main(string[] args)
        {
            string x = Console.ReadLine();
            int size = x.Length;

            if (size < 100 && size > 1)
            {
                for (int i = 0; i < x.Length;)
                {
                    char c = x[i];
                    char s = x[i + 1];

                    if (c != 'n' || c != 'a' || c != 'e' || c != 'o' || c != 'u' || c != 'i')
                    {
                        if (s != 'a' || s != 'e' || s != 'o' || s != 'u' || s != 'i')
                        {
                            Console.WriteLine("NO");
                            return;
                        }
                        else
                        {
                            i += 2;
                        }
                    }
                    else if (c == 'n')
                    {
                        char y = x[i + 2];
                        if (s != 'n' || s != 'a' || s != 'e' || s != 'o' || s != 'u' || s != 'i')
                        {
                            if (y != 'n' || y != 'a' || y != 'e' || y != 'o' || y != 'u' || y != 'i')
                            {
                                Console.WriteLine("NO");
                                return;
                            }
                            else
                            {
                                i += 3;
                            }
                        }
                        else
                        {
                            i += 2;
                        }
                    }
                }
                Console.WriteLine("YES");
                return;
            }
        }


using System;
using System.Linq;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] x = Console.ReadLine().ToArray();
            int size = x.Length;

            if (size <= 100 && size => 1)
            {
                for (int i = 0; i < x.Length-1;)
                {
                    char c = x[i];
                    char s = x[i + 1];

                    if (c != 'n' && c != 'a' && c != 'e' && c != 'o' && c != 'u' && c != 'i')
                    {
                        if (s != 'a' && s != 'e' && s != 'o' && s != 'u' && s != 'i')
                        {
                            Console.WriteLine("NO");
                            return;
                        }
                        else
                        {
                            i += 2;
                        }
                    }
                    else if (c == 'n')
                    {
                        char y = x[i + 2];
                        if (s != 'n' && s != 'a' && s != 'e' && s != 'o' && s != 'u' && s != 'i')
                        {
                            if (y != 'n' && y != 'a' && y != 'e' && y != 'o' && y != 'u' && y != 'i')
                            {
                                Console.WriteLine("NO");
                                return;
                            }
                            else
                            {
                                i += 3;
                            }
                        }
                        else
                        {
                            i += 3;
                        }
                    }
                    else
                    {

                    i += 2;
                    }
                }
                Console.WriteLine("YES");
                return;
            }
        }
    }
}


using System;
class some
{
	public static void Main()
	{
		string s=Console.ReadLine();
		char[]vowels="aeiou".ToCharArray();
		bool flag=false;
		for(int i=0;i<s.Length;i++)
		{
			if(Array.IndexOf(vowels,s[i])<0)
			{
				if(s[i]=='n')continue;
				if(i+1<s.Length)
				{
					if(Array.IndexOf(vowels,s[i+1])>=0)
						continue;
					else flag=true;
				}
				else
					flag=true;
			}
		}
		if(flag)Console.WriteLine("NO");
		else Console.WriteLine("YES");
	}


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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            String s;
            bool flag = false;
            s = Console.ReadLine();
            var set = new HashSet<char>();
            set.Add('a');
            set.Add('e');
            set.Add('i');
            set.Add('o');
            set.Add('u');
	    if((s.length==1) && (!set.Contains(s[0])))
		flag=true;

            for (int i=0;i<s.Length-1;i++)
            {
                if ((!set.Contains(s[i])) && (!set.Contains(s[i + 1])) && s[i] != 'n')
                    flag = true;

            }
            if(flag)Console.WriteLine("NO");
            else Console.WriteLine("YES");
            Console.ReadLine();

        }
    }
}


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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            String s;
            bool flag = false;
            s = Console.ReadLine();
            var set = new HashSet<char>();
            set.Add('a');
            set.Add('e');
            set.Add('i');
            set.Add('o');
            set.Add('u');
	    if(s.length==1 && (!set.Contains(s[0]))
		flag=true;

            for (int i=0;i<s.Length-1;i++)
            {
                if ((!set.Contains(s[i])) && (!set.Contains(s[i + 1])) && s[i] != 'n')
                    flag = true;

            }
            if(flag)Console.WriteLine("NO");
            else Console.WriteLine("YES");
            Console.ReadLine();

        }
    }
}


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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int m = Convert.ToInt32(Console.ReadLine());
            int[] mas = new int[m];
            string[] num = Console.ReadLine().Split(' ');
            for(int i=0;i<num.Length;i++)
            { mas[i] = int.Parse(num[i]); }
            string[] num1 = Console.ReadLine().Split(' ');
            int x = int.Parse(num1[0]);
            int y = int.Parse(num1[1]);

            int k = 0;
            for (int i = 0; i < mas.Length; i++)
            { k += mas[i]; }
            if ((k < 2 * x) || (k > y * 2)) { Console.Write(0); }
            else
            {
                for(int n=0;n<mas.Length;n++)
                {
                    int r = 0;
                    int p = 0;
                    for (int i = 0; i < mas.Length; i++)
                    {
                        if (i < n) r += mas[i];
                        else p += mas[i];
                    }
                    if ((r >= x) && (r <= y) && (p <= y) && (p >= x))
                    {
                        Console.Write(n+1); goto m1;
                    }
                }
                Console.Write(0);
            }
            m1:

            //Console.ReadLine();
        }
    }
}


using System;

class Program
{
    public static void Main(string[] args)
    {
        int[] input = ReadArray();
        if(input.Length == 2)
        {
            int a = input[0];
            int b = input[1];
            int count = 0;
            do
            {
                int delta = a - b;
                a = b;
                b = delta;
                count++;
            }
            while(delta > 0)
            Console.WriteLine(count);
        }
    }

    private static int[] ReadIntArray()
    {
        string line;
        while(Console.ReadKey().Key == ConsoleKey.Enter)
        {
            line = Console.ReadLine();
        }
        if(line != null)
        {
            string[] sArray = line.Split(' ');
            int n = stringArray.Length;
            int[] intArray = new int[n];
            for(int i = 0; i < n; i++)
            {
                string s = stringArray[i].Trim();
                intArray[i] = int.Parse(s);
            }
            return intArray;
        }
        return null;
    }
}


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

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

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

            Int64 a = long.Parse(tokens[0]);
            Int64 b = long.Parse(tokens[1]);

            Console.WriteLine(Solve(a, b));

        }

        public static Int64 Solve(Int64 a, Int64 b)
        {

            Int64 cnt = 0;

            while (a != b && a > 0 && b > 0)
            {
                if (a < b)
                {
                    cnt += b / a;
                    b = b - b / a;

                }

                else
                {
                    cnt += a / b;

                    a = a - a / b;
                }
            }

            return cnt;
        }
    }
}


using System;
using System.Linq;

namespace ConsoleApp8
{
    class Program
    {
        static void Main(string[] args)
        {
            var max = 1;
            var num = Console.ReadLine().Select(x=>(int)char.GetNumericValue(x)).ToArray();
            for (int i = 0; i < num.Length; i++)
            {
                max = max * num[i];
            }

            for (int i = 0; i < num.Length; i++)
            {
                if (num[i]==0)
                {
                    num[i - 1] = num[i - 1] - 1;
                    for (int j = i; j <num.Length ; j++)
                    {
                        num[j] = 9;
                    }

                    var c = 1;
                    for (int j = 0; j < num.Length; j++)
                    {
                        c = c * num[j];
                    }

                    if (max > c)
                    {
                        max = max;
                    }
                    else max = c;
                }
            }

            var ep = num.Reverse().ToArray();
            for (int i = 0; i < num.Length; i++)
            {
                if (i==num.Length-1)
                {
                    break;
                }
                var c = 1;
                ep[i] = 9;

                ep[i + 1] = ep[i + 1] - 1;

                for (int j = 0; j < num.Length; j++)
                {
                    if (ep[j]==0)
                    {
                        ep[j] = 1;
                    }
                    c = c * ep[j];
                }
                if (max > c)
                {
                    max = max;
                }
                else max = c;
            }
            Console.WriteLine(max);
            Console.ReadLine();
            Console.ReadLint();
        }
    }
}


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

namespace Jzzhu_and_Chocolate
{
    class Program
    {
        static IO io = new IO();
        static void Main(string[] args)
        {
            long num_H = io.ReadNextLong();
            long num_W = io.ReadNextLong();
            int num_K = io.ReadNextInt();
            if (num_H + num_W - 2 < num_K)
            {
                io.PutStr(-1);
            }
            else
            {
                long num_Max = -1;
                int num_Min = Math.Min(num_H - 1, num_K);
                int num_Count = num_K - num_Min;
                num_Max = Math.Max((num_H/(num_Min+1))*num_W/(num_Count+1),num_Max);
                num_Min= Math.Min((num_W-1),num_K);
                num_Count=num_K-num_Min;
                num_Max=Math.Max(num_H/(num_Count+1)*(num_W/(num_Min+1)),num_Max);
                io.PutStr(num_Max);
                io.ReadNum();
            }
        }
    }

    class IO
    {
        private static Queue<string> currentLineTokens = new Queue<string>();
        private static string[] ReadAndSplitLine()
        {
            return Console.ReadLine().Split(new[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
        }
        public int ReadNextInt()
        {
            return int.Parse(ReadToken());
        }
        public long ReadNextLong()
        {
            return long.Parse(ReadToken());
        }

        public int ReadNum()
        {
            return Convert.ToInt32(Console.ReadLine());
        }
        public long ReadLong()
        {
            return Convert.ToInt64(Console.ReadLine());
        }
        public string ReadStr()
        {
            return Console.ReadLine();
        }
        public string[] ReadStrArr()
        {
            return Console.ReadLine().Split(' ');
        }
        public int[] ReadIntArr()
        {
            return Array.ConvertAll<string, int>(Console.ReadLine().Split(' '), s => int.Parse(s));
        }
        public void PutStr(string str)
        {
            Console.WriteLine(str);
        }
        public void PutStr(int str)
        {
            Console.WriteLine(str);
        }
        public void PutStr(long str)
        {
            Console.WriteLine(str);
        }

        public static string ReadToken()
        {
            while (currentLineTokens.Count == 0)
                currentLineTokens = new Queue<string>(ReadAndSplitLine());
            return currentLineTokens.Dequeue();
        }
    }
}


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

namespace CODE2
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);
            int b = int.Parse(str[1]);
            int m = int.Parse(str[2]);
            int r0 = int.Parse(str[3]);
            int [] array = new int[m];
            int ri = (a * r0 + b) % m;
            array[ri] = 0;
            int count = 1;
            for (; ;count++ )
            {
                ri = (a * ri + b) % m;
                if (array[ri] == 0)
                {
                    array[ri] = count;
                }
                else
                {
                    Console.Write(count - array[ri]);
                    return;
                }
            }
        }
    }
}

[close]


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

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

            string mozi = Console.ReadLine();
            char[] ch = mozi.ToCharArray();
            int n = ch.Length;
            if (ch[0] == 'a') ch[0] = 'A';
            if (ch[0] == 'b') ch[0] = 'B';
            if (ch[0] == 'c') ch[0] = 'C';
            if (ch[0] == 'd') ch[0] = 'D';
            if (ch[0] == 'e') ch[0] = 'E';
            if (ch[0] == 'f') ch[0] = 'F';
            if (ch[0] == 'g') ch[0] = 'G';
            if (ch[0] == 'h') ch[0] = 'H';
            if (ch[0] == 'i') ch[0] = 'I';
            if (ch[0] == 'j') ch[0] = 'J';
            if (ch[0] == 'k') ch[0] = 'K';
            if (ch[0] == 'l') ch[0] = 'L';
            if (ch[0] == 'm') ch[0] = 'M';
            if (ch[0] == 'n') ch[0] = 'N';
            if (ch[0] == 'o') ch[0] = 'O';
            if (ch[0] == 'p') ch[0] = 'P';
            if (ch[0] == 'q') ch[0] = 'Q';
            if (ch[0] == 'r') ch[0] = 'R';
            if (ch[0] == 's') ch[0] = 'S';
            if (ch[0] == 't') ch[0] = 'T';
            if (ch[0] == 'u') ch[0] = 'U';
            if (ch[0] == 'v') ch[0] = 'V';
            if (ch[0] == 'w') ch[0] = 'W';
            if (ch[0] == 'x') ch[0] = 'X';
            if (ch[0] == 'y') ch[0] = 'Y';
            if (ch[0] == 'z') ch[0] = 'Z';
            int i;
            for(i = 0;i < n;i++){
            Console.Write(ch[i]);
            }
        }
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

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

            string mozi = Console.ReadLine();
            char[] ch = mozi.ToCharArray();
            int n = ch.Length;
            if (ch[0] == 'a') ch[0] = 'A';
            if (ch[0] == 'b') ch[0] = 'B';
            if (ch[0] == 'c') ch[0] = 'C';
            if (ch[0] == 'd') ch[0] = 'D';
            if (ch[0] == 'e') ch[0] = 'E';
            if (ch[0] == 'f') ch[0] = 'F';
            if (ch[0] == 'g') ch[0] = 'G';
            if (ch[0] == 'h') ch[0] = 'H';
            if (ch[0] == 'i') ch[0] = 'I';
            if (ch[0] == 'j') ch[0] = 'J';
            if (ch[0] == 'k') ch[0] = 'K';
            if (ch[0] == 'l') ch[0] = 'L';
            if (ch[0] == 'm') ch[0] = 'M';
            if (ch[0] == 'n') ch[0] = 'N';
            if (ch[0] == 'o') ch[0] = 'O';
            if (ch[0] == 'p') ch[0] = 'P';
            if (ch[0] == 'q') ch[0] = 'Q';
            if (ch[0] == 'r') ch[0] = 'R';
            if (ch[0] == 's') ch[0] = 'S';
            if (ch[0] == 't') ch[0] = 'T';
            if (ch[0] == 'u') ch[0] = 'U';
            if (ch[0] == 'v') ch[0] = 'V';
            if (ch[0] == 'w') ch[0] = 'W';
            if (ch[0] == 'x') ch[0] = 'X';
            if (ch[0] == 'y') ch[0] = 'Y';
            if (ch[0] == 'z') ch[0] = 'Z';
            int i;
            for(i = 0;i < n;i++){
            Console.Write(ch[i]);
            }
        }
    }
}


   class Program
    {
        static void Main(string[] args)
        {
             string str = (System.Console.ReadLine()).ToString();

            System.Console.WriteLine(str[0].ToUpper()+str.Substring(1));

        }
    }


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

namespace Test
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Console.WriteLine(input[0].ToString().ToUpper() + input.Remove(0, 1));
		}
	}
}


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            x[0] = Char.ToUpper(x[0]);
            Console.Write(x);
        }
    }
}


using System;
using System.Collections.Generic;

public class Test {
	public static void Main() {
		string s = Console.ReadLine();
		s[0].ToUpper();
		Console.WriteLine(s);
	}
}


    class Program
    {
        static void Main(string[] args)
        {
            string word = Console.ReadLine();
            Console.WriteLine(Char.ToUpper(word[0]) + word.Substring(1));
        }
    }


using Microsoft.VisualBasic.CompilerServices;
using System;

class Program
{
    static void Main()
    {
        string str = Console.ReadLine();

        Console.Write(char.ToUpper(str[0]));
        for (int i = 1; i < str.Length; i++)
            Console.Write(str[i]);
    }
}


using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;

namespace URI_practice
{
   public class Program
    {
        static void Main(string[] args)
        {
            string line = Console.ReadLine();
            Console.WriteLine(UppercaseFirst(line));

        }

        static string UppercaseFirst(string s)
        {

            return char.ToUpper(s[0]) + s.Substring(1);
        }
    }

}


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

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

            string str = Console.ReadLine();

            char ch = (str[0]);

            if ((Char.IsLower(ch)) is true)
            {
                string rp = (Convert.ToString(ch)).ToUpper();
                char r = Convert.ToChar(rp);

                Console.WriteLine(str.Replace(ch,r));

            }
            else
            {
                Console.WriteLine(str);
            }

            Console.ReadKey();

        }
    }
}


class Program
    {

        public static void Main()
        {
            string txt = Console.ReadLine();
            txt = txt[0].ToString().ToUpper() + txt.Substring(1, txt.Length - 1);
            Console.WriteLine(txt);
            //Console.Read();

        }

    }


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

namespace ConsoleApp3
{
    class Program
    {

        public static void upper(string[] uppercase) {

            if (uppercase[0].Substring(0, 1) != uppercase[0].Substring(0, 1).ToUpper()) {

                Console.WriteLine(uppercase[0].Substring(0, 1).ToUpper() + uppercase[0].Substring(1, Convert.ToInt32(uppercase[0].Length) - 1));

            }
            Console.ReadLine();
        }

        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split();
            upper(input);

        }
    }
}


<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <RootNamespace>Капитализация_слова</RootNamespace>
  </PropertyGroup>

</Project>


using System;

class HelloWorld
{
  static void Main()
  {
      string stream = Console.ReadLine();
      char [] qwe = new char [stream.Length];

      for (int i = 0; i < stream.Length; ++i)
      {
          qwe[i] = stream[i];
      }

      if (stream[0] >= 'a' && stream[0] =< 'z')
      {
          qwe[0] = Char.ToUpper(qwe[0]);
      }
      Console.WriteLine(qwe);
  }
}


using System;

    class program_10
    {
        public static void Main()
        {
            string x = ReadLine();
            char f = (x[0] > 'a' && x[0] < 'z') ? (char)(x[0] - 32) : x[0];
            Console.Write(f);
            for (int i = 1; i < x.Length; i++)
            {
                Console.Write(x[i]);
            }
            Console.WriteLine();
        }
    }


using system;
class solution{
    static void Main(string args){
        var st = Console.ReadLine();
        if (st[0] < 'a')
            Console.WriteLine(st);
        else
        {
            var f = st[0].ToString().ToUpper();
            Console.WriteLine(f + st.Substring(1));
        }
    }
}


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            if((int)x[0]>=97 && (int)x[0]<=122){
                x[0] = (char)((int)x[0]-32);
            }
            Console.Write(x);
        }
    }
}


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            x[0] = x[0].ToString().ToUpper();
            Console.Write(x);
        }
    }
}


using System;

class Program {
  static void Main() {
    Console.WriteLine(Console.ReadLine().ToUpperCase());
  }
}


using System;
class program{
    static void Main(){
        var str = Console.ReadLine();
       Console.WriteLine(str[0].ToString().ToUpper() + str.Substring(1,str.Length()-1));    }
}


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

namespace Olymp_dop
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            Console.Write(s[0].ToString().ToUpper() + s.Substring(1, s.Length - 1);
        }
    }
}


=using System;

class P
{
    public static void Main()
    {

            var lectura = Console.ReadLine();
            if ((lectura[0] - 0) >= 97 && (lectura[0] - 0) <= 122)
            {
                char pr = (char)(lectura[0] - 32);
                Console.WriteLine(pr.ToString() + lectura.Substring(1));
            }

            else
            { Console.WriteLine(lectura); }

    }
}


namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            String s = Console.ReadLine();
            char first = s.ToUpper()[0];
            String final = "";

            for (int i = 0; i < s.Length; i++)
            {
                if (i == 0)
                {
                    final += first;
                }
                else
                {
                    final += s[i];
                }
            }
            Console.WriteLine(final);
        }

    }
}


 class Program
    {
        static void Main(string[] args)
        {
             String str = (System.Console.ReadLine()).ToString();
            System.Console.WriteLine(str[0].ToString().ToUpper()+str.Substring(1));

        }
    }


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

namespace A
{
    class Program
    {
        private static TextReader GetFileTextReader()
        {
            return File.OpenText(@"../../input.txt");
        }

        private static TextWriter GetFileTextWriter()
        {
            return File.CreateText(@"../../output.txt");
        }

        private static TextReader GetConsoleTextReader()
        {
            return Console.In;
        }

        private static TextWriter GetConsoleTextWriter()
        {
            return Console.Out;
        }

        static void Main(string[] args)
        {
            TextReader reader = GetConsoleTextReader();

            TextWriter writer = GetConsoleTextWriter();

            string word = reader.ReadLine();

            writer.WriteLine(word[0].ToString().ToUpper() + word.Substring(1, word.Length - 1));
        }
    }
}


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}") = "ConsoleApplication7", "ConsoleApplication7\ConsoleApplication7.csproj", "{ADC31B02-CB74-4C1E-BC2E-65E433B2CD81}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{ADC31B02-CB74-4C1E-BC2E-65E433B2CD81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{ADC31B02-CB74-4C1E-BC2E-65E433B2CD81}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{ADC31B02-CB74-4C1E-BC2E-65E433B2CD81}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{ADC31B02-CB74-4C1E-BC2E-65E433B2CD81}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            X[0].ToString().ToUpper();
            Console.Write(x);
        }
    }
}


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

namespace YOLO
{
    class Program
    {
        static void Main(string[] args)
        {
            string x;
            x = Console.ReadLine();
            x[0] = x[0].ToUpper();
            Console.Write(x);
        }
    }
}


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

        string s=Console.ReadLine();
        Console.WriteLine(s[0].ToUpper())

    }

}


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

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

            string str = Console.ReadLine();

            char ch = (str[0]);

            if ((Char.IsLower(ch)) is true)
            {
                string rp = (Convert.ToString(ch)).ToUpper();
                char r = Convert.ToChar(rp);

                Console.WriteLine(str.Replace(ch,r));

            }
            else
            {
                Console.WriteLine(str);
            }

        }
    }
}


using System;
using System.Linq;

class Solution
{
    static void Main()
    {
        string guest = Console.ReadLine();
        string host = Console.ReadLine();
        char[] pile = Console.ReadLine().ToCharArray();
        char[] final = guest.Concat(host).ToArray();

        Array.Sort(final);
        Array.Sort(pile);
        if (pile.SequenceEqual(final)) { Console.WriteLine("YES"); }
        else { Console.WriteLine("NO"); }

    }
}


using System;
class Test {
    static void Main() {
        string tmp = "",str = "";
        string antmp = "";
        string ans = "NO";
        int len,n = 0;
        tmp += Console.ReadLine();
        tmp += Console.ReadLine();
        str = Console.ReadLine();
        len = str.Length;
        for(int i=0 ; i<tmp.Length ; i++){
            for(int j=0 ; j<str.Length ; j++){
                if(tmp[i]==str[j]){
                    antmp = "";
                    for(int k=0 ; k<str.Length ; k++){
                        if(k!=j){
                            antmp += str[k];
                        }
                    }
                    str = antmp;
                    n++;
                    break;
                }
            }
            if(n==len){
                ans = "YES";
            }
        }
        Console.WriteLine(ans);
    }
}1


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

namespace Codefather_is_riseing_ha_ha_ha
{
    class Program
    {
        static long fibo(long x)
        {
            if (x == 3) return 1;
            else if (x == 4) return 2;
            else if (x == 5) return 3;
            else
            {
                long counter = 3;
                long a = 2, b = 3, c = 0;
                while (true)
                {
                    c = a + b;
                    a = b;
                    b = c;
                    counter++;
                    if (counter == x) break;
                }
                return c;
            }
        }
        static void Main(string[] args)
        {
            string str1 = Console.ReadLine();
            string str2 = Console.ReadLine();
            string str3 = Console.ReadLine();
            string result = str1 + str2;
            char[] result_arr = result.ToCharArray();
            char[] str3_arr = str3.ToCharArray();
            Array.Sort(result_arr);
            Array.Sort(str3_arr);
            int d = 1;
            char a = str1[0];
            char a2 = str2[0];
            for (int i = 0; i < str3_arr.Length; i++)
            {
                if ((result.Length ==2 && (a<a2))) { Console.Write("NO"); d = -1; break; }
                if (str3.Length==2 && str3<result.Length) { Console.Write("NO"); d = -1; break; }
                if (i >= result_arr.Length) break;
                if (result_arr[i] != str3_arr[i]) { Console.Write("NO"); d = -1; break; }
            }
            if (d > 0) { Console.Write("YES"); }
        }
    }
}


using System;
using System.Linq;

public class Program
{
	public static void Main()
	{
		var name = new string[2];
		for (int i = 0; i < 2; i++)
		{
			name[i] = Console.ReadLine();
		}
		var door = Console.ReadLine();
		var dic = new Dictionary<char, int>();
		var letters = new int[26];
		for (int i = 0; i < 26; i++)
		{
			letters[i] = 0;
		}
		foreach (var item in name)
		{
			for (int i = 0; i < item.Length; i++)
			{
				++letters[item[i] - 'A'];
			}
		}
		for (int i = 0; i < door.Length; i++)
		{
			--letters[door[i] - 'A'];
		}
		Console.WriteLine(letters.Any(i => i != 0) ? "NO" : "YES");
	}
}