https://www.codechef.com/COMY2019/problems/CM1910

https://www.codechef.com/COMY2019/problems/CM1910