The number of positions

Problem Name:
The number of positions
Site:CodeForces
Links:
Tags:
Problem setters: