Ternary Logic

Problem Name:
Ternary Logic
Site:CodeForces
Links:
Tags:
Problem setters: