https://medium.com/@eyajamuehaque/1790a-polycarp-and-the-day-of-pi-codeforces-solution-in-c-c2e423b0a80b