/* 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
{
{
long countFirstOfMonths =
LocalDate
.parse( "2022-03-14" )
.datesUntil( LocalDate.parse( "2022-04-15" ) )
.filter( localDate -> localDate.getDayOfMonth() == 1 )
.count() ;
System.
out.
println( countFirstOfMonths
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlsb25nIGNvdW50Rmlyc3RPZk1vbnRocyA9CiAgICAgICAgICAgIExvY2FsRGF0ZQogICAgICAgICAgICAucGFyc2UoICIyMDIyLTAzLTE0IiApCiAgICAgICAgICAgIC5kYXRlc1VudGlsKCBMb2NhbERhdGUucGFyc2UoICIyMDIyLTA0LTE1IiApICkKICAgICAgICAgICAgLmZpbHRlciggbG9jYWxEYXRlIC0+IGxvY2FsRGF0ZS5nZXREYXlPZk1vbnRoKCkgPT0gMSApCiAgICAgICAgICAgIC5jb3VudCgpIDsKCiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCBjb3VudEZpcnN0T2ZNb250aHMgKTsKCX0KfQ==