/* 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
{
{
"Add six months: " +
LocalDate.parse( "2024-08-30" ).plusMonths( 6 )
);
"Add 6 * 30 days: " +
LocalDate.parse( "2024-08-30" ).plusDays( 6 * 30 )
);
"Add 6 * 31 days: " +
LocalDate.parse( "2024-08-30" ).plusDays( 6 * 31 )
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRpbWUuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3lzdGVtLm91dC5wcmludGxuKAogICAgICAgICAgICAiQWRkIHNpeCBtb250aHM6ICIgKwogICAgICAgICAgICBMb2NhbERhdGUucGFyc2UoICIyMDI0LTA4LTMwIiApLnBsdXNNb250aHMoIDYgKSAKICAgICAgICApOwoKCQlTeXN0ZW0ub3V0LnByaW50bG4oCiAgICAgICAgICAgICJBZGQgNiAqIDMwIGRheXM6ICIgKwogICAgICAgICAgICBMb2NhbERhdGUucGFyc2UoICIyMDI0LTA4LTMwIiApLnBsdXNEYXlzKCA2ICogMzAgICkgCiAgICAgICAgKTsKCgkJU3lzdGVtLm91dC5wcmludGxuKAogICAgICAgICAgICAiQWRkIDYgKiAzMSBkYXlzOiAiICsKICAgICAgICAgICAgTG9jYWxEYXRlLnBhcnNlKCAiMjAyNC0wOC0zMCIgKS5wbHVzRGF5cyggNiAqIDMxICApIAogICAgICAgICk7Cgl9Cn0=