https://codeforces.com/blog/entry/70740 https://github.com/Laakeri/tiralabra/blob/master/src/scalingcirculation.cpp