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