"""simple docstring"""




def 							_UpperCAmelCase		(       ):





		"""simple docstring"""




		lowerCAmelCase__        =   [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

		lowerCAmelCase__        =   6
		lowerCAmelCase__        =   1
		lowerCAmelCase__        =   1901

		lowerCAmelCase__        =   0

		while year < 2001:
				day += 7

				if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
						if day > days_per_month[month - 1] and month != 2:
								month += 1
								lowerCAmelCase__        =   day - days_per_month[month - 2]
						elif day > 29 and month == 2:
								month += 1
								lowerCAmelCase__        =   day - 29
				else:
						if day > days_per_month[month - 1]:
								month += 1
								lowerCAmelCase__        =   day - days_per_month[month - 2]

				if month > 12:
						year += 1
						lowerCAmelCase__        =   1

				if year < 2001 and day == 1:
						sundays += 1
		return sundays


if __name__ == "__main__":
			print(solution())





"""simple docstring"""




def 							_UpperCAmelCase		(       lowerCamelCase__ = 50     ):





		"""simple docstring"""




		lowerCAmelCase__        =   [[0] * 3 for _ in range(length + 1     )]

		for row_length in range(length + 1     ):
				for tile_length in range(2			,  5     ):
						for tile_start in range(row_length - tile_length + 1     ):
								different_colour_ways_number[row_length][tile_length - 2] += (
								    different_colour_ways_number[row_length - tile_start - tile_length][
								        tile_length - 2
								    ]
								    + 1
								)

		return sum(different_colour_ways_number[length]     )


if __name__ == "__main__":
			print(F"{solution() = }")




