Oleg and shares

Problem Name:
Oleg and shares
Site:CodeForces
Links:
Tags:
Problem setters: