#### 503. Running City

Time limit per test: 0.25 second(s)
Memory limit: 262144 kilobytes
input: standard
output: standard

 sample input sample output 3 3 1 1 3 1 2 2 2 3 1 1 3 2 1 3  3 2 1 2 
 sample input sample output 3 3 3 1 3 1 2 2 2 3 2 1 3 1 1 3 1 3 1 3  4 2 1 2 
 sample input sample output 4 3 3 1 4 1 2 3 2 3 2 3 4 1 3 1 2 3 2 2 3 1 3  16 3 1 2 3