Click here to read the complete problem statement.
You should not give answers directly . You should only give hints .