import static java.time.temporal.ChronoUnit.*;
import java.time.chrono.ChronoLocalDate;
import java.time.chrono.ChronoPeriod;
import java.time.format.DateTimeFormatter;
public class Main {
public static void main
(String[] args
) { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
ChronoLocalDate from = ChronoLocalDate.from(formatter.parse("01/01/2000"));
ChronoLocalDate to = ChronoLocalDate.from(formatter.parse("01/01/2015"));
ChronoPeriod period = ChronoPeriod.between(from, to);
System.
out.
printf("%d años, %d meses y %d días", period.
get(YEARS
), period.
get(MONTHS
), period.
get(DAYS
)); }
}
aW1wb3J0IHN0YXRpYyBqYXZhLnRpbWUudGVtcG9yYWwuQ2hyb25vVW5pdC4qOwoKaW1wb3J0IGphdmEudGltZS5jaHJvbm8uQ2hyb25vTG9jYWxEYXRlOwppbXBvcnQgamF2YS50aW1lLmNocm9uby5DaHJvbm9QZXJpb2Q7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0LkRhdGVUaW1lRm9ybWF0dGVyOwoKcHVibGljIGNsYXNzIE1haW4gewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJCURhdGVUaW1lRm9ybWF0dGVyIGZvcm1hdHRlciA9IERhdGVUaW1lRm9ybWF0dGVyLm9mUGF0dGVybigiZGQvTU0veXl5eSIpOwoJCUNocm9ub0xvY2FsRGF0ZSBmcm9tID0gQ2hyb25vTG9jYWxEYXRlLmZyb20oZm9ybWF0dGVyLnBhcnNlKCIwMS8wMS8yMDAwIikpOwoJCUNocm9ub0xvY2FsRGF0ZSB0byA9IENocm9ub0xvY2FsRGF0ZS5mcm9tKGZvcm1hdHRlci5wYXJzZSgiMDEvMDEvMjAxNSIpKTsKCQlDaHJvbm9QZXJpb2QgcGVyaW9kID0gQ2hyb25vUGVyaW9kLmJldHdlZW4oZnJvbSwgdG8pOwoJCVN5c3RlbS5vdXQucHJpbnRmKCIlZCBhw7FvcywgJWQgbWVzZXMgeSAlZCBkw61hcyIsIHBlcmlvZC5nZXQoWUVBUlMpLCBwZXJpb2QuZ2V0KE1PTlRIUyksIHBlcmlvZC5nZXQoREFZUykpOwoJfQp9