using System;
public class Program
{
public static void Main()
/*
///Task 1
string temp = "";
string[] text_arr = {"apple", "strawberry", "cherry"};
for(int i = 0; i < text_arr.Length; i++)
Console.Write(text_arr[i] + "\t");
int[] arr_length = new int[text_arr.Length];
for(int i = 0; i < text_arr.Length - 1; i++)
if(text_arr[i].Length > text_arr[i+1].Length)
temp = text_arr[i];
text_arr[i] = text_arr[i+1];
text_arr[i+1] = temp;
}
Console.Write("\n");
*/
///Task2
string line = "this apple iss very sour";
Console.WriteLine(line);
int numberOfSymbol = int.Parse(Console.ReadLine());
for(int i = 0; i < line.Length; i++)
if(numberOfSymbol == i)
line = line.Remove(numberOfSymbol, 1);
///Task3
string line = "kefijf ejjfioej iijjfef hh";
int count_words = 0;
string[] words = line.Split(new char[] {',', ' ', ':', ';', '.'}, StringSplitOptions.RemoveEmptyEntries);
foreach(string s in words)
Console.WriteLine(s);
for(int i = 0; i < words.Length; i++)
count_words++;
Console.WriteLine("count_words: " + count_words);