CODEFORCES : 789B-Masha & Geometric Depression