Im unable to understand the solution[Your text to link here...](codeforces round 664 c) logic of codeforces div2 664 logic of codeforces div2 664 problem c.↵
http://codeforces.com/contest/1395/problem c./C
http://codeforces.com/contest/1395/problem