Hi everyone, I have recently participated in codeforces round #308 div2. My submission for problem got wrong answer on pretest 5th. After contest I checked output for same code on ideone (Ideone link here) and my local machine then got correct answer. I don't know why online judge of codeforces was showing wrong output. I request all of you to check on your local machine and let me know if my code is giving any error.