Dam with Y-fronts

parse took 0.10701704025269
mysql: 28 queries took 0.010948896408081