using System;
using System.Collections.Generic;
using System.Text;


    class Program
    {
        static void Main(string[] args)
        {

                            /*
                         * 测试男女老少搬砖
                          */
                          MoveBrick();

        }

      #region 穷举发 男女老少搬砖
        /*
         *
         * 【例 2】36 块砖,36 人搬,男搬 4,女搬 3,
         *  两个小儿抬一砖,要求一次全搬完,问男、女、小儿需若
         *   干?
         */
        static void MoveBrick()
        {
            int k;
            for (int i = 0; i < 9; i++)
            {
                for (int j = 0; j < 12; j++)
                {
                    k = 36 - i - j;
                    if ((4*i+3*j+k/2==36)&&k%2==0)
                    {
                        Console.WriteLine("男:"+i+"女:"+j+"小儿:"+k);
                    }
                }
            }
       
        }

        #endregion
   }