input n&p automatically again