ABC2097

315 queries in 2.287 seconds.