Herculean Math

Login to see hints.