Masha and geometric depression

Problem Name:
Masha and geometric depression
Site:CodeForces
Links:
Tags:
Problem setters: