using System;
public class Program
{
public static void Main()
string x = "dvir";
string y = "";
int z = 0;
int m = 3;
bool h = false;
while (x != y && !h)
if (z < m)
Console.WriteLine("Enter an password");
y = Console.ReadLine();
z++;
}
else
h = true;
if (h)
Console.WriteLine("The number of attempts is over");
Console.WriteLine("Correct password");