The first problem solution