OPPOSITE - EDITORIAL

you just need to remove the break statement on line number 45 as you must take all the input then only you should print answer.