\expandafter\ifx\csname classoptions\endcsname\relax
  \def\classoptions{}
\fi
\documentclass[fykos,\classoptions]{fksgeneric}

\usepackage[fyziklani2]{fkslegacyloader}

\input{common.tex}

\begin{document}
\null
\vspace{0pt plus1fil}
\begin{center}
\section[\solutionsname]{\Huge \solutionsname}
\vspace{10pt}
%TODO logo
%\includegraphics[width=0.6\textwidth]{logo-ondrasovka.pdf}
\end{center}
\vspace{0pt plus2fil}

\newpage
    \setcounter{problem}{0}
    \loop{
        \problemsolution

        % TODO po přeskládání úloh
        \ifthenelse{\equal{\octnumber{problem}}{BG}}{\newpage}{}
    }\ifnum\theproblem<\theproblemscount
    \repeat

%\clearpage
%\null
%\vspace{0pt plus4fill}
%\begin{center}
%\includegraphics[width=2cm]{logo8.eps}
%\bigskip

%\metavar{address}

%\end{center}
%\makefooter
\end{document}
