Fair elect question of january long challenge

I am not understanding why am i getting WA after submission inspite of getting correct ans for substaks when input is given manually

NO discussion on problems of ongoing contest