https://codeforces.com/contest/1399/submission/89019484