You probably do not want to test against EOF in *scanf functions, they return EOF only under very special circumstances. If you test against != 2, you will catch read errors and all other cases.
To avoid having people answer or ask follow-up questions in the interval before the post is deleted, simply replace your entire post with the word "delete".