ABC2097

340 queries in 1.426 seconds.