solutions/max_kaskevich/1.3/sources/task/main.cpp: small code refactoring.