Anastasia and pebbles

Problem Name:
Anastasia and pebbles
Site:CodeForces
Links:
Tags:
Problem setters: