CF802E Marmots (medium)

Description

Good job! Now that Heidi is able to distinguish between Poisson and uniform distributions, she is in a good position to actually estimate the populations. Can you help Heidi estimate each village's population?

Input Format

Same as the easy version.

Output Format

N/A