Done by Muntaser Abukadeja CF:http://codeforces.com/profile/M.Abukadeja———–Problem : http://codeforces.com/contest/365/problem/Acode: https://ideone.com/YV5PRT