2020 USOMO Problems/Problem 5

This article is a stub. Help us out by expanding it.

The answer is 42.