Why WA? have any critical input, please?
problem : http://codeforces.me/contest/714/problem/B code : http://pastebin.com/bD9sBRgT