\documentclass[a4paper,11pt]{article}

\def\lang{\VAR{lang}}
\usepackage{icpc}
\usepackage{import}

\def\Year{\VAR{vars.year}}
\def\Title{\VAR{contest.title}}
\def\Date{\VAR{vars.date}}

%- if vars.editorial is truthy and vars.watermark is truthy
\AddToHook{shipout/foreground}{
       \begin{tikzpicture}[overlay, remember picture]
            \node[text=gray, rotate=45, scale=8, opacity=0.3]
				at (0.5\paperwidth,-0.6\paperheight) {EDITORIAL};
        \end{tikzpicture}
    }
%- endif

\begin{document}

%- if vars.editorial is truthy
\InsertEditorialTitlePage
%- else
\InsertTitlePage
\input{instructions.tex}
%- endif

%- for problem in problems
\stepcounter{problemcounter}
\subimport{\VAR{problem.path | parent}/}{\VAR{problem.path | stem}}
%- endfor

\label{lastpage}
\end{document}
