The input function