My code-
The problem link-https://codeforces.com/contest/1486/problem/A
In this my code ran successfully on all the test cases given but codeforces showed wrong ans on pretest 2
.Plz tell me why this happen and can you plz modify my codei that case