Hello codeforces! I want help with this Codeforces Round #497 (Div. 1) A problem...Even after looking at the editorial I didn't understand why it's answer is n-x. Please help me understand.....Thanks!!
Upd: I don't care about downvotes, I just need an answer.