import java.time.LocalDate;
import java.time.Period;

class Main {
    public static void main(String[] args) {
        LocalDate today = LocalDate.now();
        LocalDate fortyDaysAgo = today.minusDays(40);
        Period period = Period.between(fortyDaysAgo, today);
        System.out.println(period);
        System.out.printf("%d year(s) %d month(s) %d day(s)%n", period.getYears(), period.getMonths(),
                period.getDays());
    }
}