SPOJ 7190 Guess the Number, AC.