ABC2097

312 queries in 3.483 seconds.