PROGRAMMING:Validity of date
Enter the value of year, month and day of a day, and output whether the day is a legal date (the expression will be very long).
#####Input format:
Enter three integers for the year, month, and day.
#####Output format:
Output yes or no.
#####Input example:
```in
2049 5 31
```
###Output example:
```out
YES
```
#####Input example:
```in
2100 2 29
```
###Output example:
```out
NO
```
answer:If there is no answer, please comment
#####Input format:
Enter three integers for the year, month, and day.
#####Output format:
Output yes or no.
#####Input example:
```in
2049 5 31
```
###Output example:
```out
YES
```
#####Input example:
```in
2100 2 29
```
###Output example:
```out
NO
```
answer:If there is no answer, please comment