I am solving a problem on hackerearth,but in my code the if statement works some times and sometimes not
I check by printing these statements
N = 999 K