http://mirror.codeforces.com/contest/913/submission/34021734 Accepted
http://mirror.codeforces.com/contest/913/submission/34049526 Wrong answer on test 4
http://mirror.codeforces.com/contest/913/submission/34049558 Accepted
What is diffrent ? I edit just one line about ll b in dfs function..