/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.time.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// fevereiro de 2019
		YearMonth.of(2019, 2)
		    // tenta setar o dia para 31
		    .atDay(31);
		// dá erro porque fevereiro não tem dia 31
	}
}