compare number with input number