RRStone checkpoint

I have gotten a WA for a couple of times now. Suppose you have an input like 5 2 and you input 2 3 7 8 omitting the last number. What am I suppose to get with this? Is the last absent number to be assumed 0 or catered for in some way? I simply quit the program when N != input.length. Is this wrong?