Printing in partitions