Generate input sequence