SPOJ 5084: Discrete Math Problem