public static void Main()
Console.Write("Enter the same key 3 times in a row: ");
string key = Console.ReadLine();
Console.WriteLine("The key is too short");
Console.WriteLine("The key is too long");
if (key[0] == key[1] && key[1] == key[2])
Console.WriteLine("Welcome!");
Console.WriteLine("The key is not the same");