This is a task for Python Course at Vilnius University.