https://freecodecenter.com/anton-and-danik-solution-in-cpp/
Codeforces734A Anton and Danik solution