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

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

import java.time.*;

/* 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
	{
		// DOB: 2000-12-24
		var dob =  LocalDate.of(2000, 12, 24);

		// Minimum age: 18 years
		var birthdayAge18years = dob.plusYears(18);
		// Maximum age: 75 years
		var birthdayAge75years = dob.plusYears(75);
		
		var today = LocalDate.now();
		
		// is today after 18th birthday and before 75th
		var olderThanOr18 = today.equals(birthdayAge18years) || today.isAfter(birthdayAge18years);
		System.out.println(birthdayAge18years + " > older than or exactly 18 years: " + olderThanOr18);
		var youngerThanOr75 = today.equals(birthdayAge75years) || today.isBefore(birthdayAge75years);
		System.out.println(birthdayAge75years + " > younger than or exactly 75 years: " + youngerThanOr75);
		
	}
}