Two out of Three

Problem Name:
Two out of Three
Site:CodeForces
Links:
Tags:
Problem setters: