At the beginning of the month, a penguin had 31 fish. By the middle of the month, he had as many fish as the initial amount plus 31 more. At the end of the month, he had as many fish as the amount he had in the middle of the month and the initial 31 fish. How many fish did the penguin have at the end of the month?