ACMAKER2Mod : With dp seems to be working. Now modify it to input format of spoj