static void Main(string[] args)
 {
     int time = 0;
     Console.WriteLine("set time");
     time = Convert.ToInt32(Console.ReadLine());
     var clock = new ClockManager();
     var human = new Human(clock);
     var cooker = new Сooker(clock);
     cooker.Unregister(clock);
     
     clock.SimulateTimeOver(time);
 }
 public void Unregister(ClockManager clock)
 {
     clock.TimeOver -= СookerMsg;
 }
 public Сooker(ClockManager clock)
 {
     clock.TimeOver += СookerMsg;
 }
 public void Unregister(ClockManager time)
 {
     time.TimeOver -= HumanMsg;
 }
 public Human(ClockManager time)
 {
     time.TimeOver += HumanMsg;
 }