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

\usepackage{fkslegacyloader}

\input{common.tex}

\begin{document}
\section{Řešení úloh 1. ročníku MFNáboje}
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \problemsolution
 \makefooter
\end{document}
