/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import java.time.format.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
LocalDate ld = null ;
DateTimeFormatter formatter =
DateTimeFormatter
.ofPattern( "uuuu/MM/dd" )
.withResolverStyle( ResolverStyle.STRICT ) ; // Be strict: Reject 31st of February.
try {
ld = LocalDate.parse( input , formatter ) ;
} catch ( DateTimeParseException e ) {
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRpbWUuKiA7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0LiogOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKTG9jYWxEYXRlIGxkID0gbnVsbCA7IAoKU3RyaW5nIGlucHV0ID0gIjIwMjIvMDEvMzEiIDsKRGF0ZVRpbWVGb3JtYXR0ZXIgZm9ybWF0dGVyID0gCiAgICBEYXRlVGltZUZvcm1hdHRlcgogICAgICAgIC5vZlBhdHRlcm4oICJ1dXV1L01NL2RkIiApCiAgICAgICAgLndpdGhSZXNvbHZlclN0eWxlKCBSZXNvbHZlclN0eWxlLlNUUklDVCApIDsgIC8vIEJlIHN0cmljdDogUmVqZWN0IDMxc3Qgb2YgRmVicnVhcnkuCnRyeSB7CglsZCA9IExvY2FsRGF0ZS5wYXJzZSggaW5wdXQgLCBmb3JtYXR0ZXIgKSA7Cn0gY2F0Y2ggKCBEYXRlVGltZVBhcnNlRXhjZXB0aW9uIGUgKSB7CglTeXN0ZW0ub3V0LnByaW50bG4oIGUgKSA7Cn0KU3lzdGVtLm91dC5wcmludGxuKCBsZCApIDsKCX0KfQ==