PROGRAMMING:Date identification 2
###Task description
```
Unfortunately, classmate x always has a problem with the date recently, because he can't bear to face a lot of date data at a time. This time, the reason is that the writing of those dates is extremely nonstandard, and it's impossible to recognize the day when we carefully distinguish them, because many dates can be understood as a variety of situations.
The location of the three numbers in each of the following dates is uncertain, which leads to various understandings. For example:
2 / 3 / 1 can be understood as 0002-03-01 or 0003-02-01 or 0001-02-03;
13 + 12 + 45 can only be understood as 0045-12-13;
12 = 3 = 13 can be understood as 0012-03-13 or 0002-12-13 or 0013-12-03 or 0013-03-12;
29, 22019 are not legal dates;
35.36.37 is not a legal date;
11 * 31 * 30 can be understood as 0031-11-30;
Now student X has to program to judge which dates can be understood as several different legal date forms. Do you think he can make them up.
```
###Input format:
One line, a date in the form of X-Y-Z, where x, y and Z are positive integers with no more than 4 digits, and "-" is a separator character, which may be any symbol.
System test data to ensure that x, y, Z are different.
###Output format:
If the date can be understood as a legal date, output the number of legal dates it can be understood as;
If the date cannot be interpreted as a legal date, output: invalid date!.
###Input example:
```in
2/3/1
```
###Output example:
```out
six
```
###Input example:
```in
13+12+45
```
###Output example:
```out
one
```
###Input example:
```in
29,2,2019
```
###Output example:
```out
Invalid Date!
```
###Input example:
```in
35-36-37
```
###Output example:
```out
Invalid Date!
```
###Input example:
```in
11-30-31
```
###Output example:
```out
one
```
answer:If there is no answer, please comment
```
Unfortunately, classmate x always has a problem with the date recently, because he can't bear to face a lot of date data at a time. This time, the reason is that the writing of those dates is extremely nonstandard, and it's impossible to recognize the day when we carefully distinguish them, because many dates can be understood as a variety of situations.
The location of the three numbers in each of the following dates is uncertain, which leads to various understandings. For example:
2 / 3 / 1 can be understood as 0002-03-01 or 0003-02-01 or 0001-02-03;
13 + 12 + 45 can only be understood as 0045-12-13;
12 = 3 = 13 can be understood as 0012-03-13 or 0002-12-13 or 0013-12-03 or 0013-03-12;
29, 22019 are not legal dates;
35.36.37 is not a legal date;
11 * 31 * 30 can be understood as 0031-11-30;
Now student X has to program to judge which dates can be understood as several different legal date forms. Do you think he can make them up.
```
###Input format:
One line, a date in the form of X-Y-Z, where x, y and Z are positive integers with no more than 4 digits, and "-" is a separator character, which may be any symbol.
System test data to ensure that x, y, Z are different.
###Output format:
If the date can be understood as a legal date, output the number of legal dates it can be understood as;
If the date cannot be interpreted as a legal date, output: invalid date!.
###Input example:
```in
2/3/1
```
###Output example:
```out
six
```
###Input example:
```in
13+12+45
```
###Output example:
```out
one
```
###Input example:
```in
29,2,2019
```
###Output example:
```out
Invalid Date!
```
###Input example:
```in
35-36-37
```
###Output example:
```out
Invalid Date!
```
###Input example:
```in
11-30-31
```
###Output example:
```out
one
```
answer:If there is no answer, please comment