Manhattan Permutations

Problem Name:
Manhattan Permutations
Site:CodeForces
Links:
Tags:
Problem setters: