http://beta.lss.fd.cvut.cz/vyuka/sanl/sysa_zadani_ulohy.pdf