Epam test task, rounded train