using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MagnesikiZWyjatkami
{

    class ExTestDrive
    {
        public static void Zero(string test)
        {

            try
            {

                Console.Write("t");

                DoRisky(test);

                Console.Write("o");

            }
            catch (MyException)
            {

                Console.Write("a");

            }
            finally
            {

                Console.Write("w");

            }

            Console.Write("s");

        }

        static void DoRisky(String t)
        {
            Console.Write("h");

            if (t == "yes")
            {

                throw new MyException();

            }

            Console.Write("r");
        }
    }

}