B. Building Fire Stations
time limit per test
4 seconds
memory limit per test
256 megabytes
input
stdin
output
stdout
Input
Output
Examples