using System;
public class Program
{
public static void Main()
///Task1
/*
string s1 = "life";
string s2 = "is";
string s3 = "beautiful";
string[] sentence = new string[] {s1, s2, s3};
String s4 = String.Join(" ", sentence);
string s5 = String.Concat(s4, ", ");
string s6 = String.Concat(s4, ", ");
string s7 = String.Concat(s4, " ");
Console.Write(s5);
Console.Write(s6);
Console.WriteLine(s7);
Console.WriteLine(s4.Length);
*/
///Task2
string s1 = "snowman";
char ch1 = s1[0];
char ch2 = s1[(s1.Length-1)/2];
char ch3 = s1[s1.Length - 1];
Console.WriteLine(s1);
Console.WriteLine("first symbol: " + ch1);
Console.WriteLine("middle symbol: " + ch2);
Console.WriteLine("last symbol: " + ch3);
///Task3
do
string s1 = Console.ReadLine();
if(s1.Length < 5)
Console.WriteLine("Enter a word with more than 5 symbols");
}
while(s1.Length < 5);