i copy pasted example input of https://codeforces.net/contest/1391/problem/B but the output is not coming out after input of each test case, it gets mixed with input of other test cases.see image attached(/predownloaded/f4/74/f474c2cc870524573e76898948efc08138eb4198.png).