Bear and Friendship Condition

Problem Name:
Bear and Friendship Condition
Site:CodeForces
Links:
Tags:
Problem setters: