SPOJ 3107: Odd Number of Divisors