In my machine it gives me correct output !!!
what is the problem with the solution ? http://codeforces.me/contest/987/submission/38760668