Language Prolog. Task for studies.