import java.time.*;
import java.time.temporal.ChronoUnit;
class Ideone
{
{
LocalDateTime start = LocalDateTime.now();
Period period = Period.parse("P1M");
LocalDateTime end = start.plus(period);
long milliseconds = start.until(end, ChronoUnit.MILLIS);
System.
out.
println(milliseconds
); }
}
aW1wb3J0IGphdmEudGltZS4qOwppbXBvcnQgamF2YS50aW1lLnRlbXBvcmFsLkNocm9ub1VuaXQ7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJTG9jYWxEYXRlVGltZSBzdGFydCA9IExvY2FsRGF0ZVRpbWUubm93KCk7CgkJUGVyaW9kIHBlcmlvZCA9IFBlcmlvZC5wYXJzZSgiUDFNIik7CgkJTG9jYWxEYXRlVGltZSBlbmQgPSBzdGFydC5wbHVzKHBlcmlvZCk7CgkJbG9uZyBtaWxsaXNlY29uZHMgPSBzdGFydC51bnRpbChlbmQsIENocm9ub1VuaXQuTUlMTElTKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4obWlsbGlzZWNvbmRzKTsKCX0KfQ==