In this problem, Codeforces compiler giving an output which is different from the output I got (which is matching to the output of the sample cases) and saying it's a wrong code. But, my code is actually giving the right output of the sample cases.
Here's my code: 171740686
Please, anybody can look into it, and point out where I am wrong.