K stacks and Plates | CodeChef