Tasks from JavaRush.ru