using System;

namespace PLAYGROUND
{
    internal class program
    {
        static void Display (int x, int y)
        {
            for (int i = 1; i <= x; i++)
            {
                for (int o = 1; o <= y; o++)
                {
                    if (Fancy(i, o) == (1, 1))
                    {
                        Console.Write($"\t({i * o})");
                    }
                    else if (Fancy(i, o) == (2, 2))
                    {
                        Console.Write($"\t/{i * o}\\");
                    }
                    else if (Fancy(i, o) == (2, 1))
                    {
                        Console.Write("\t{" + i*o +"}");
                    }
                    else if (Fancy(i, o) == (1, 2))
                    {
                        Console.Write($"\t|{i * o}|");
                    }

                }
                Console.WriteLine();
            }
        }
        static (int x, int y) Fancy (int x, int y)
        {
            if (x % 2 == 0 && y % 2 == 0)
            {
                return (2, 2);
            } else if (x % 2 != 0 && y % 2 == 0)
            {
                return (1, 2);
            } else if (x % 2 == 0 && y % 2 != 0)
            {
                return (2, 1);
            } else if (x % 2 != 0 && y % 2 != 0)
            {
                return (1, 1);
            }
            return (0, 0);
        }
        static void Main (string[] args)
        {
            int XbutActuallyY = 0;
            int YbutActuallyX = 0;
            Console.WriteLine("ievadi X skaitli ");
            XbutActuallyY = Convert.ToInt16(Console.ReadLine());
            Console.WriteLine("ievadi Y skaitli ");
            YbutActuallyX = Convert.ToInt16(Console.ReadLine());

            Display(XbutActuallyY, YbutActuallyX);
        }
    }
}