Forward and Backward

Problem Name:
Forward and Backward
Site:CodeForces
Links:
Tags: