I solved the math problem of @djmotwister manually, because I couldn't believe the awesome answer - 2010 :)