I want to know how to get the code automatically, instead of input. 
I want to know how to get the code automatically, instead of input.