SRM 597 DIV 1 EASY & MEDIUM
VK Cup 2012 Round 2 Problem E e-Government