Input verification done on the second question.