import java.time.*;
import java.time.format.*;
class Ideone
{
public static void main
(String[] args
) {
YearMonth thisMonth = YearMonth.now();
YearMonth lastMonth = thisMonth.minusMonths(1);
YearMonth twoMonthsAgo = thisMonth.minusMonths(2);
DateTimeFormatter monthYearFormatter = DateTimeFormatter.ofPattern("MMMM yyyy");
System.
out.
printf(" Today: %s\n", thisMonth.
format(monthYearFormatter
)); System.
out.
printf(" Last Month: %s\n", lastMonth.
format(monthYearFormatter
)); System.
out.
printf("Two Months Ago: %s\n", twoMonthsAgo.
format(monthYearFormatter
)); }
}
aW1wb3J0IGphdmEudGltZS4qOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qOwoKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewoJCVllYXJNb250aCB0aGlzTW9udGggICAgPSBZZWFyTW9udGgubm93KCk7CgkJWWVhck1vbnRoIGxhc3RNb250aCAgICA9IHRoaXNNb250aC5taW51c01vbnRocygxKTsKCQlZZWFyTW9udGggdHdvTW9udGhzQWdvID0gdGhpc01vbnRoLm1pbnVzTW9udGhzKDIpOwoJCQoJCURhdGVUaW1lRm9ybWF0dGVyIG1vbnRoWWVhckZvcm1hdHRlciA9IERhdGVUaW1lRm9ybWF0dGVyLm9mUGF0dGVybigiTU1NTSB5eXl5Iik7CgkJCgkJU3lzdGVtLm91dC5wcmludGYoIiAgICAgICAgIFRvZGF5OiAlc1xuIiwgdGhpc01vbnRoLmZvcm1hdChtb250aFllYXJGb3JtYXR0ZXIpKTsKCQlTeXN0ZW0ub3V0LnByaW50ZigiICAgIExhc3QgTW9udGg6ICVzXG4iLCBsYXN0TW9udGguZm9ybWF0KG1vbnRoWWVhckZvcm1hdHRlcikpOwoJCVN5c3RlbS5vdXQucHJpbnRmKCJUd28gTW9udGhzIEFnbzogJXNcbiIsIHR3b01vbnRoc0Fnby5mb3JtYXQobW9udGhZZWFyRm9ybWF0dGVyKSk7Cgl9Cn0=