/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.* ;
import java.time.temporal.* ;


/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
	DateTimeFormatter f = DateTimeFormatter.ofLocalizedDate( FormatStyle.FULL ).withLocale( Locale.US ) ;

    YearMonth ym = YearMonth.of( 2013 , Month.JANUARY ) ;
    LocalDate firstOfMonth = ym.atDay( 1 ) ;

    TemporalAdjuster ta = TemporalAdjusters.previousOrSame( DayOfWeek.MONDAY ) ;
    LocalDate previousOrSameMonday = firstOfMonth.with( ta ) ;

    LocalDate endOfMonth = ym.atEndOfMonth() ;
    LocalDate weekStart = previousOrSameMonday ; 
    do {
        LocalDate weekStop = weekStart.plusDays( 6 ) ;
        System.out.println( "Week: " + weekStart.format( f ) + " to " + weekStop.format( f ) ) ;
        // Set up the next loop.
        weekStart = weekStart.plusWeeks( 1 ) ;
    } while ( ! weekStart.isAfter( endOfMonth ) ) ;
    
	}
}