The task of the lessons twelve. (http://kuzniaprogramistow.pl/node/24)