ABC2097

322 queries in 2.312 seconds.