import java.util.* ;
import java.time.* ;
import java.time.format.* ;
class Ideone
{
{
final int year = 2017 ;
for ( Month month : Month.values ( ) ) {
LocalDate date = LocalDate.of ( year, month, 01) ;
int numberOfDays = date.lengthOfMonth ( ) ;
String monthName
= month.
getDisplayName ( TextStyle.
FULL ,
new Locale ( "pt" ,
"BR" ) ) ;
System .
out .
println ( monthName
+ " tem " + numberOfDays
+ " dias." ) ; }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0Lio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZmluYWwgaW50IHllYXIgPSAyMDE3OwoJCQoJCWZvcihNb250aCBtb250aCA6IE1vbnRoLnZhbHVlcygpKXsKCQkJCgkJCUxvY2FsRGF0ZSBkYXRlID0gTG9jYWxEYXRlLm9mKHllYXIsIG1vbnRoLCAwMSk7CgkJCWludCBudW1iZXJPZkRheXMgPSBkYXRlLmxlbmd0aE9mTW9udGgoKTsKCQkJU3RyaW5nIG1vbnRoTmFtZSA9IG1vbnRoLmdldERpc3BsYXlOYW1lKFRleHRTdHlsZS5GVUxMLCBuZXcgTG9jYWxlKCJwdCIsICJCUiIpKTsKCQkJCgkJCVN5c3RlbS5vdXQucHJpbnRsbihtb250aE5hbWUgKyAiIHRlbSAiICsgbnVtYmVyT2ZEYXlzICsgIiBkaWFzLiIpOwoJCX0KCX0KfQ==