New Year and Boolean Bridges

Problem Name:
New Year and Boolean Bridges
Site:CodeForces
Links:
Tags:
Problem setters: