\newcommand{\hint}[1]{
	\par\noindent\textit{\textbf{Подсказка.}} \hspace{14cm}
	\begin{rotate}{180}
		\parbox{14cm}{#1}
	\end{rotate}\par\bigskip
}


\newbox\bx
\renewcommand{\le}{\leqslant}
\renewcommand{\ge}{\geqslant}
\newcounter{z}



\newcounter{lett}
\setcounter{lett}{0}
\newcommand{\lethempty}{\hspace{0,2cm}\refstepcounter{lett}\noindent\textbf{\asbuk{lett})~}}
\newcommand{\lethcircempty}{\hspace{0,2cm}\refstepcounter{lett}\noindent\textbf{\asbuk{lett})$^{\circ}$~}}
\newcommand{\lettempty}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\textbf{\asbuk{lett})~}}

%\newcommand{\leth}{\hspace{0,2cm}\refstepcounter{lett}\textbf{\asbuk{lett})~}}
\newcommand{\leth}{\hspace{0,2cm}\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\textbf{\asbuk{lett})~}}
\newcommand{\lethcirc}{\hspace{0,2cm}\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\textbf{\asbuk{lett})$^{\circ}$~}}
\newcommand{\lethstar}{\hspace{0,2cm}\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\textbf{\asbuk{lett})$^{\star}$~}}
\newcommand{\lethsstar}{\hspace{0,2cm}\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\textbf{\asbuk{lett})$^{\star\star}$~}}

\newcommand{\lett}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \, \textbf{\asbuk{lett})~}}

\newcommand{\lettN}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\textbf{\asbuk{lett})~}}


\newcommand{\lethN}{\hspace{.1cm} \refstepcounter{lett}\textbf{\asbuk{lett})~}}

%\newcommand{\lett}{\par\noindent \refstepcounter{lett}\textbf{\asbuk{lett})~}}
\newcommand{\lettcirc}{\par\noindent \refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \, \textbf{\asbuk{lett})$^{\circ}$~}}

%\newcommand{\lethcirc}{\hspace{0,2cm}\refstepcounter{lett}\textbf{\asbuk{lett})∘^{\circ}~}}
%\newcommand{\lettcirc}{\par\noindent \refstepcounter{lett}\textbf{\asbuk{lett})∘^{\circ}~}}


\newcommand{\lettstar}{\par\noindent\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \, \textbf{\asbuk{lett}$^{\star}$)~}}
\newcommand{\lettsstar}{\par\noindent\refstepcounter{lett}\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \, \textbf{\asbuk{lett}$^{\star\star}$)~}}

%\newcommand{\lettstar}{\par\noindent\refstepcounter{lett}\textbf{\asbuk{lett}⋆^{\star})~}}
\newcommand{\gund}{\underline{\phantom{test user tbh}}}
\newcommand{\gfill}[1]{\textbf{#1}}
\newcommand{\gzero}[1]{\par\noindent\hspace{-6ex}\fbox{\rule{0pt}{7pt}\ \ }\fbox{\rule{0pt}{7pt}\ \ }\fbox{\rule{0pt}{7pt}\ \ }\hspace{1.5ex}\gfill{#1. (\gund, \gund, \gund)}}
\newcommand{\VV}{\tikz\fill[scale=0.3](0,.35) -- (.25,0) -- (.8,.8) -- (.25,.25) -- cycle;}
\newcommand{\gone}[2]{\par\noindent\hspace{-6ex}\fbox{\rule{0pt}{7pt}\VV}\fbox{\rule{0pt}{7pt}\ \ }\fbox{\rule{0pt}{7pt}\ \ }\hspace{1.5ex}\gfill{#1. (#2, \gund, \gund)}}
\newcommand{\gtwo}[2]{\par\noindent\hspace{-6ex}\fbox{\rule{0pt}{7pt}\VV}\fbox{\rule{0pt}{7pt}\VV}\fbox{\rule{0pt}{7pt}\ \ }\hspace{1.5ex}\gfill{#1. (#2, \gund)}}
\newcommand{\gthree}[2]{\par\noindent\hspace{-6ex}\fbox{\rule{0pt}{7pt}\VV}\fbox{\rule{0pt}{7pt}\VV}\fbox{\rule{0pt}{7pt}\VV}\hspace{1.5ex}\gfill{#1. (#2)}}

\newcommand{\z}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} }
\newcommand{\ze}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} }
\newcommand{\zecirc}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}$^{\circ}$}} }

\newcommand{\zp}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}}} }


\newcommand{\zpdag}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}}\unskip$^{\dag}$} }




\newcommand{\zpcirc}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}$^{\circ}$}} }

\newcommand{\zpstar}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}$^{\star}$}} }

\newcommand{\zpsstar}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}$^{\star\star}$}} }


\newcommand{\zpstarstar}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}} \,\fbox{\textbf{\arabic{z}$^{\star\star}$}} }


\newcommand{\zn}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} \leth }


\newcommand{\znN}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} \lethN }


\newcommand{\zncirc}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} \lethcirc }


\newcommand{\zcirc}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}$^{\circ}$}} }


\newcommand{\zol}[1]{\setcounter{lett}{0}\par\vskip 4 pt\noindent\fbox{\textbf{#1}} }

\newcommand{\zz}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 5 pt\noindent{\textbf{Задача~\arabic{z}}.} }
\newcounter{st}
\newcommand{\st}{\setcounter{lett}{0}\par\refstepcounter{st}\vskip 1 pt\noindent{\footnotesize \fbox{\fbox{\textbf{\arabic{st}}}}} }
\newcommand{\prfig}[2]{\begin{figure}[ht]
\centerline{\includegraphics[scale=#1]{#2}}
\end{figure}}
\newcommand{\prfigs}[1]{\prfig{1}{#1}}


%\newcommand{\zstar}{\par\refstepcounter{z}\vskip 5 pt\noindent\fbox{\textbf{\arabic{listok}.\arabic{z}⋆^{\star}}} }
\newcommand{\zstar}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 5 pt\noindent\fbox{\textbf{\arabic{z}$^{\star}$}} }

\newcommand{\zsmile}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 5 pt\noindent\fbox{\textbf{\arabic{z} :)}} }


\newcommand{\zsstar}{\par\refstepcounter{z}\vskip 3 pt\noindent\textbf{\arabic{z}$^{\star\star}$} }
\newcommand{\bxx}{\noindent\usebox{\bx}}

\newenvironment{zg}[2]{%
  \setcounter{lett}{0}% как в остальных \z-макросах
  \par\vskip 4pt%
  \noindent\fbox{\textbf{#1.~#2}}\quad%
}{%
  \par\vspace{3pt}%
 % \noindent\makebox[\linewidth]{\hrulefill}\\[6pt]%
  %\noindent\makebox[\linewidth]{\hrulefill}\\[6pt]%
  %\noindent\makebox[\linewidth]{\hrulefill}\\[10pt]%
}

\newcommand{\kto}{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}}

\newenvironment{zgnolett}[5]{%
  \setcounter{lett}{0}% как в остальных \z-макросах
  \par\vskip 4pt%

  \noindent\fbox{\textbf{#1.~#2}}\\[.1cm]
 \noindent \fbox{\textit{#3}} \, \noindent \fbox{\textit{#4}} \,\noindent \fbox{\textit{#5}} \quad%
}{%
  \par\vspace{3pt}%
 % \noindent\makebox[\linewidth]{\hrulefill}\\[6pt]%
  %\noindent\makebox[\linewidth]{\hrulefill}\\[6pt]%
  %\noindent\makebox[\linewidth]{\hrulefill}\\[10pt]%
}


\newcommand{\lettg}[3]{\par\vspace{.1cm}\noindent \refstepcounter{lett}\fbox{\textit{#1}} \, \fbox{\textit{#2}} \, \fbox{\textit{#3}} \, \textbf{\asbuk{lett})~}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% обычная рамочка справа
\newcommand{\leftbox}{\hfill \fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% пунктирные рамки у задач
\newcommand{\dashedbox}{\parbox{2cm}{\tikz{\draw[thick,loosely dashed] (0,0) rectangle (1.9,0.44);}}}
\newcommand{\dottedbox}{\parbox{2cm}{\tikz{\draw[thick,densely dashed] (0,0) rectangle (1.9,0.44);}}}
\newcommand{\halfdashedbox}{\noindent\fbox{\rule{0cm}{0.5\baselineskip}\rule{\shag}{0cm}}\,  \dashedbox }
\newcommand{\roundedbox}{\parbox{2cm}{\tikz{\draw[rounded corners=0.2cm, dotted,very thick]  (0,0) rectangle (1.9,0.48);}}}

\newcommand{\zpdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\dashedbox\,\fbox{\textbf{\arabic{z}}} }

\newcommand{\zphalfdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox\fbox{\textbf{\arabic{z}}} }


\newcommand{\zphalfdashedrounded}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox \, \roundedbox \fbox{\textbf{\arabic{z}}} }


\newcommand{\zpcirchalfdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox \,\fbox{\textbf{\arabic{z}$^{\circ}$}} }

\newcommand{\zpcircdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\dashedbox\, \fbox{\textbf{\arabic{z}$^{\circ}$}} }


\newcommand{\zpcirchalfdashedrounded}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox \, \roundedbox \fbox{\textbf{\arabic{z}$^{\circ}$}} }


\newcommand{\zpstarhalfdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox \,\fbox{\textbf{\arabic{z}$^{\star}$}} }


\newcommand{\zpstarhalfdashedrounded}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\halfdashedbox\, \roundedbox  \,\fbox{\textbf{\arabic{z}$^{\star}$}} }

\newcommand{\zpstardashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\dashedbox\,\fbox{\textbf{\arabic{z}$^{\star}$}} }


\newcommand{\zpstarstarhalfdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\halfdashedbox \,\fbox{\textbf{\arabic{z}$^{\star\star}$}} }
\newcommand{\zpstarstardashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\dashedbox \,\fbox{\textbf{\arabic{z}$^{\star\star}$}} }

\newcommand{\lethhalfdashed}{\hspace{0,2cm}\refstepcounter{lett}\halfdashedbox \,\textbf{\asbuk{lett})~}}


\newcommand{\lethhalfdashedrounded}{\hspace{0,2cm}\refstepcounter{lett}\halfdashedbox\, \roundedbox \,\textbf{\asbuk{lett})~}}


\newcommand{\lethdashedrounded}{\hspace{0,2cm}\refstepcounter{lett}\dashedbox\, \roundedbox \,\textbf{\asbuk{lett})~}}


\newcommand{\lethdashed}{\hspace{0,2cm}\refstepcounter{lett}\dashedbox \,\textbf{\asbuk{lett})~}}

\newcommand{\lethdotted}{\hspace{0,2cm}\refstepcounter{lett}\dottedbox \,\textbf{\asbuk{lett})~}}

\newcommand{\lethcirchalfdashed}{\hspace{0,2cm}\refstepcounter{lett}\halfdashedbox \,\textbf{\asbuk{lett})$^{\circ}$~}}



\newcommand{\lethcirchalfdashedrounded}{\hspace{0,2cm}\refstepcounter{lett}\halfdashedbox \, \roundedbox \,\textbf{\asbuk{lett})$^{\circ}$~}}

\newcommand{\lethcircdashedrounded}{\hspace{0,2cm}\refstepcounter{lett}\dashedbox\,\roundedbox \,\textbf{\asbuk{lett})$^{\circ}$~}}

\newcommand{\lethcircdashed}{\hspace{0,2cm}\refstepcounter{lett}\dashedbox\, \textbf{\asbuk{lett})$^{\circ}$~}}


\newcommand{\lethstarhalfdashed}{\hspace{0,2cm}\refstepcounter{lett}\halfdashedbox \,\textbf{\asbuk{lett})$^{\star}$~}}


\newcommand{\lethstardashed}{\hspace{0,2cm}\refstepcounter{lett}\dashedbox\, \textbf{\asbuk{lett})$^{\star}$~}}

\newcommand{\letthalfdashed}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\halfdashedbox \, \textbf{\asbuk{lett})~}}


\newcommand{\letthalfdashedrounded}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\halfdashedbox\, \roundedbox \, \textbf{\asbuk{lett})~}}


\newcommand{\lettdashed}{\par\vspace{.1cm}\noindent \refstepcounter{lett}\dashedbox\,  \textbf{\asbuk{lett})~}}


\newcommand{\lettcirchalfdashed}{\par\noindent \refstepcounter{lett}\halfdashedbox\, \textbf{\asbuk{lett})$^{\circ}$~}}


\newcommand{\lettcirchalfdashedrounded}{\par\noindent \refstepcounter{lett}\halfdashedbox\, \roundedbox \,  \textbf{\asbuk{lett})$^{\circ}$~}}


\newcommand{\lettcircdashed}{\par\noindent \refstepcounter{lett}\dashedbox \, \textbf{\asbuk{lett})$^{\circ}$~}}


\newcommand{\lettstarhalfdashed}{\par\noindent\refstepcounter{lett}\halfdashedbox\, \textbf{\asbuk{lett}$^{\star}$)~}}

\newcommand{\lettstardashed}{\par\noindent\refstepcounter{lett}\dashedbox\, \textbf{\asbuk{lett}$^{\star}$)~}}



\newcommand{\zncircdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} \lethcircdashed }


\newcommand{\zncirchalfdashed}{\setcounter{lett}{0}\par\refstepcounter{z}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} \lethcirchalfdashed }
%% пунктирные рамки у задач

%\newcommand{\halfdashedbox}{\tikz{\draw[dashed] (0.35,0) -- (-0.6,0) -- (-.6,0.45) -- (0.35,0.45) (1.3,0.45);\draw (0.35,0.45) -- (1.3,0.45) -- (1.3,0) -- (.4,0)}}

%\newcommand{\zdashed}{}

\newcommand{\dup}[1]{#1\vfill #1\newpage#1\vfill #1\newpage#1\vfill #1\newpage#1\vfill #1}
\newcommand{\dupp}[1]{\setbox\bx\vbox{#1}\bxx\vfill\bxx\vfill\bxx\vfill\bxx\vfill\bxx}
\setcounter{z}{0}









%
% \textwidth=28.0cm \oddsidemargin=-2.1cm \topmargin=-1.9cm
% \setlength{\textheight}{42\baselineskip}
% \setlength{\textheight}{\baselinestretch\textheight}
% \addtolength{\textheight}{\topskip}

\newcommand{\Vect}[1]{\overrightarrow{\strut #1}}

%\graphicspath{{/home/vladimir/Desktop/Test1/Figs/}}

\graphicspath{{/Users/natascha/Desktop/Figs/}}


\newcounter{var}
\setcounter{var}{0}

\newcommand{\twopages}[2]{\parbox{13.2 cm}{#1}\hfill\parbox{13.2 cm}{#2}}
\newcommand{\threepages}[3]{\parbox{8.8 cm}{#1}\hfill\parbox{8.8 cm}{#2}\hfill\parbox{8.7 cm}{#3}}

\newcommand{\twopagess}[2]{\parbox{13.6 cm}{#1}\hfill\parbox{13.6 cm}{#2}}
\newcommand{\doublepages}[1]{\twopages{#1}{#1}}

\newcommand{\ost}[2]{\mbox{ост}_{#2}(#1)}

\newcommand*{\defeq}{\stackrel{\text{def}}{\coloneqq}}





\newcommand{\zabaka}{\setcounter{lett}{0}\par\addtocounter{z}{10}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} }


\renewcommand{\zabaka}{\setcounter{lett}{0}\par\addtocounter{z}{4}\vskip 4 pt\noindent\fbox{\textbf{\arabic{z}}} }

