Wrong Constraints!


#1

According to problem constraints, 1 <= A <= 10000 . But in test cases it is beyond 10000.