homework 2 by P Galyshev
52