reading n int and store into a array