Bear and Up-Down

Problem Name:
Bear and Up-Down
Site:CodeForces
Links:
Tags:
Problem setters: