Correct input function