Counting Relative Lists

Problem Name:
Counting Relative Lists
Site:CodeForces
Links:
Tags: