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

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

/* 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
	{
		final List<Date> dates = mondaysFirst(1900, 1902);
		final SimpleDateFormat sf = new SimpleDateFormat("dd MMM yyyy");
		for (Date date: dates) {
			System.out.println(sf.format(date));
		}
	}
	
	public static List<Date> mondaysFirst(int firstYear, int lastYear) {
		final List<Date> dates = new ArrayList<>();
		final Calendar c1 = Calendar.getInstance(Locale.US);
		c1.set(firstYear, 0, 1, 0, 0, 0);
		final Calendar c2 = Calendar.getInstance(Locale.US);
		c2.set(lastYear, 11, 31, 23, 59, 59);
		
		while (c1.before(c2)) {
			final int dayOfTheWeek = c1.get(Calendar.DAY_OF_WEEK);
			// is sunday
			if (dayOfTheWeek == 1) {
				dates.add(c1.getTime());	
			}
			c1.add(Calendar.MONTH, 1);
		}
		
		return dates;
	}
}